He has given His Holy Spirit to all who believe. He knows you better than you know yourself. He knows your struggles and your needs. While your perspective may be captured by the earthly, in His providential provision He provides all that you need for your good and His glory.
When considering the pain and suffering of this life, many people make one of two assumptions about God. He is either good but not all powerful, or he is powerful but not all good.
God has established rules of order to creation, and He orchestrates all things according to His sovereign will… including the ordinary providence of fleeing to Egypt to avoid the vengeful wrath of an angry king.