And we know that God causes everything to work together for the good of those who love God and are called according to his purpose for them. -Rom 8:28
God is masterful in weaving events together for His glory, even if it is painful, challenging, or traumatic. When your world comes crashing down, keep your faith focused on God. He will not fail you. When your attention is focused on a solid rock, your perspective changes and the rest moves into your peripheral view.
How can you stay focused on God when all else fails? Plant yourself in God’s word. Be persistent in prayer. Confide in an accountability partner who is mature in their faith, and see God working all things in your favor.