Genesis 39:17-23
English Standard Version
Chapter 39
17and she told him the same story, saying, "The Hebrew servant, whom you have brought among us, came in to me to laugh at me. 18But as soon as I lifted up my voice and cried, he left his garment beside me and fled out of the house."
19As soon as his master heard the words that his wife spoke to him, "This is the way your servant treated me," his anger was kindled.
20And Joseph 's master took him and put him into the prison, the place where the king 's prisoners were confined, and he was there in prison.
21But the Lord was with Joseph and showed him steadfast love and gave him favor in the sight of the keeper of the prison.
22And the keeper of the prison put Joseph in charge of all the prisoners who were in the prison. Whatever was done there, he was the one who did it.
23The keeper of the prison paid no attention to anything that was in Joseph 's charge, because the Lord was with him. And whatever he did, the Lord made it succeed.