When life goes bad, we tend to focus on the problems, then we become defeated and depressed.
In all times of life we are challenged to let the Lord be the focus of our attention.
Psalm 37:4 Delight thyself also in the Lord; and he shall give thee the desires of thine heart.
If we can focus on Who He is to us, what He has done for us, where He is taking us, and how much He loves us, even the darkest day can be endured because we know something better awaits us down the road.
When the Lord is our delight, we will only want the things which bring Him glory— which please Him.
When this happens He will lift us out of our sadness and fill us with His glory. God will open the windows of Heaven and give us every desire of our hearts.