Psalm 46:1 says "God is our refuge and strength, an ever present help IN trouble"
I capitalize the word IN above because I want to clarify that God is not only in control when things go well for us. It might be easy for us to believe that God is only sovereign when all is well or when all our needs or wants or desires are met...but God is ALWAYS in control.
Here, and many other places in scripture, we see that God is our help in times of trouble, distress, pain, suffering and other less than ideal situations. We would, of course, prefer to avoid these situations...but that's just not how life works. Life involves difficulty. Life involves loss. Life involves grief. Being a person of faith does not mean we escape pain, but that God is with us IN the pain. God is with us IN times of trouble.
You are never alone. In your hurt, in your pain...God is with you. So when you find yourself in the valley, know that God is there. He is with you. You are not alone.