“Because the patriarchs were jealous of Joseph, they sold him as a slave into Egypt. But God was with him and rescued him from all his troubles. He gave Joseph wisdom and enabled him to gain the goodwill of Pharaoh king of Egypt. So Pharaoh made him ruler over Egypt and all his palace.
Sometimes we suffer because God is moving us from where we are to where He wants us to be. Instead of being negative and depressed over a seemingly 'bad' situation, choose to follow God. God enabled Joseph with the good will of Pharaoh and gave him wisdom where he needed.
Are you in a situation where you are suffering? Maybe God is moving you into the place where He wants to use you. Give glory to God, praise and worship Him. Ask Him what He is requiring of you and then wait patiently, He will reveal it to you in His perfect timing.
Habakkuk 2:3 NIV
For the revelation awaits an appointed time;
it speaks of the end
and will not prove false.
Though it linger, wait for it;
it will certainly come
and will not delay.
Keep yourself open to the new opportunities that God has in store for you. Only good things will come when God is involved.