We often place our hope in the wrong things. Romans 5:1-11 tells us that we can rejoice in hope of the glory of God. And we can rejoice in our sufferings as well because they produce perseverance which produces character which produces hope.
It’s not easy to have a solid hope even through our trials. What will help is to look to Jesus, meditate on His Word, and remind ourselves of the truth.