Problems have a purpose. When we explore why we are going through the rough times and focus on God often things are revealed to us. All things can work to the glory of God. Trust God in all things and focus on Him.
Trust me in your times of trouble, and I will rescue you, and you will give me glory. Pslam 50:15