I was looking at the books in my library and in a random pick, I came across the lines,
When things seem to be going wrong in our lives, our enemy likes to plant a second joy-killing question: Why is this happening to me? It may be a health issue, a family problem, or some other disappointment, but the struggle makes you wonder why God would allow such a thing to happen to you.
God wants you to know that your suffering is not meaningless. It will produce perseverance, character, and hope. God will use the hardest things in your life to achieve something of infinite value. God can make the points of greatest pain in your life the place in which He creates a remarkable resemblance of Jesus Christ in you.
If you have understood that the whole of this life is a preparation for eternity, this will not be disappointing to you. God’s purpose is not just that you will be in glory, but that glory will be in you.
If you can see that, then you will be able to rejoice in God even through the hardest days of your life. You may look up to God through your tears, but you will be able to say, “Thank You that this is not the end, but only a painful passage on the way to all You are preparing for me.”Smith, C. S. (2002). Unlocking the Bible Story Vol.4 Chicago, IL: Moody Press. page 50
He was actually commenting on Romans 5.
Not only so, but we also rejoice in our sufferings, because we know that suffering produces perseverance; perseverance, character; and character, hope. (vv. 3–4)