“And Joseph's master took him, and put him into the prison, a place where the king's prisoners were bound: and he was there in the prison.” - Genesis 39:20.
Having been sold by his brothers into slavery in Egypt, Joseph was at the age of 17 bought by Portipher, a captain of the king's guard, who, seeing that the Lord was with him, made him overseer over all his house. Just as things were looking up for him, the devil used the wife of Portipher to lust after him, which overtures he firmly refused. (Genesis 39:9) The bitterness of rejection made her to seek revenge by raising a false report against Joseph and he was thrown into prison. But even behind the four walls of the prison, he found favour in the sight of the keeper of the prison in that he committed the administration of the prison into his hand “because the LORD was with him”, (Genesis 39:21-23) It was in prison that his gift of interpreting dreams was discovered and he was from thence catapulted to the position of being the number two man in Egypt. (Genesis 39-41) Joseph was a man who underwent several trials but showed strong faith in whatever situation he found himself until God raised him to carry out his divinely appointed mission, that of saving many souls alive.
“For thou, O God, hast proved us: thou hast tried us, as silver is tried. Thou broughtest us into the net; thou laidst affliction upon our loins. Thou hast caused men to ride over our heads; we went through fire and through water: but thou broughtest us out into a wealthy place”. - Psalm 66:10-12.