Genesis 39:19-23
Genesis 39:19-23 NKJV
So it was, when his master heard the words which his wife spoke to him, saying, “Your servant did to me after this manner,” that his anger was aroused. Then Joseph’s master took him and put him into the prison, a place where the king’s prisoners were confined. And he was there in the prison. But the LORD was with Joseph and showed him mercy, and He gave him favor in the sight of the keeper of the prison. And the keeper of the prison committed to Joseph’s hand all the prisoners who were in the prison; whatever they did there, it was his doing. The keeper of the prison did not look into anything that was under Joseph’s authority, because the LORD was with him; and whatever he did, the LORD made it prosper.