Suffering can be used to prepare us for a special task. The greatest example of this is Joseph, who was mistreated by his brothers and sold into slavery for 20 pieces of silver. But Joseph lived out the truth of Romans 8:28: "And we know that God causes everything to work together for the good of those who love God and are called according to his purpose for them."
His brothers thought they would never see Joseph again, but God, through His providence, elevated Joseph to be the second most powerful man in Egypt, in charge of the food supply. So when a famine hit the land and the brothers of Joseph went to Egypt for grain, little did they know they were standing before the brother whom they had betrayed. They didn't recognize him with the passing of time. And they certainly didn't expect to see him in that position.
But Joseph recognized them, and eventually he revealed to them that he was their brother. They collectively thought, And we are . . . dead.
But then he made an amazing statement: "You intended to harm me, but God intended it all for good. He brought me to this position so I could save the lives of many people" (Genesis 50:20).
The same is true for us. Even when bad comes our way, God can bring good out of bad. We often isolate Romans 8:28 and don't think of the verse that follows it: "For God knew his people in advance, and he chose them to become like his Son, so that his Son would be the firstborn among many brothers and sisters."
God's end game, God's big plan for you, is not to merely make you happy; it is also to make you holy. God's desire is that you become like Jesus.