Matthew 5:45 That ye may be the children of your Father which is in heaven: for he maketh his sun to rise on the evil and on the good, and sendeth rain on the just and on the unjust.
The Lord is quoted in this scripture in Matthew. It contains an important principle which believers sometimes tend to overlook. Many believe and even teach that if you're blessed, your life will be filled with material prosperity, and that if you are undergoing extreme trial, it must be because you have sinned or that you lack faith. The Lord says that the sun rises and the rain falls on both the righteous and the unrighteous alike.
A life of good circumstances does not mean that God is with us. And likewise, a life of trial and suffering does not mean that God is not with us! If we base our lives on our circumstances, we are no different than people without God. What makes us different is that we have something far greater than our circumstances! We have a relationship with the Living God!
There's nothing wrong with rejoicing in the good times but we need to rejoice in the bad as well! We have a greater treasure and a more amazing victory when our lives our centered upon Him.