Genesis 39:19-21
Genesis 39:19-21 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.