Nothing in Joseph’s life came as a surprise to God, and Joseph never let it get the best of him.
Though he didn’t have the Bible, he did have the promise of a God-given dream, and we have the promise of Scripture, that God is going to work out EVERY seeming setback for our good!

Genesis 39:2-3 The Lord was with Joseph, and he was a successful man; and he was in the house of his master the Egyptian. And his master saw that the Lord was with him and that the Lord made all he did to prosper in his hand.
https://twitter.com/dannygokey/status/1760091595297227219?t=dhVzfO2QIekkzp9_8fWBrA&s=19