The Lord works extremely well through imperfect people (1 Cor 12:9) and imperfect situations. When disaster strikes, He transforms the circumstances to bring great good out of evil. Was it good for Nebuchadnezzar to command his subjects to worship his image? No, absolutely not. Yet what a fabulous opportunity to reveal God's supremacy over all the false gods of Babylon. He never forced or led the king to make that foolish choice, nor Shadrach, Meshach, and Abednego to choose the threat of the furnace rather than worship an idol. He knew that they would and He used the opportunity to prove His power because of a terrible situation without causing it to begin with.
When we are in difficult situations, we can hope in the Lord for a miracle. We can look to see how He will transform us and the position we are in, not because He designed or desired the trial to take place in our lives, but because He is fully capable of taking what is impossible and using it to showcase His power.