Joseph had it tough. Sold into slavery, sent into exile, slandered, imprisoned. Every time he got a leg up he got knocked back down. But in the end he was in the right place at the right time and God used him to save His people.
You can look at this and come to the conclusion that God’s plan included all the evil that came to him, that God did, or let’s say allowed, these things to happen to him. But I think it’s clear that none of this was God’s idea. It was Satan’s evil work. But God in the end turned it around and brought a good result out of the evil that Satan did. He brought victory out of defeat. It was all God’s doing. The only thing that Joseph had to do was not give up, not let defeat settle in, not turn his back on God.
That’s what God does. He turns defeat into victory, sometimes in spectacular ways. Circumstances conspire and we find ourselves way behind at the half. But that’s not the end of the game. He has victory planned for us. He doesn’t want us to win in overtime. He doesn’t want us to win by a field goal as time expires. He wants to run up the score.