From the very first moment of creation, God had a plan. Even when the humans separated themselves from Him in the Fall, He already had a Savior on the way. Everything that happens, big and small, God knows about and already has a plan to bring good from it. It is often hard to see from our limited perspective, but thankfully for us, God's perspective is infinite.
Every good gift is from above and every gift is perfect. The precise thing needed in that particular moment of time. Even when times feel out of control for us, God is already making it work for good. There is no need to worry or fret. We serve a God of hope who is a beacon to guide us and protect us along our journey on this earth.