Genesis 39:21 in the King James Version
But the LORD was with Joseph, and shewed him mercy, and gave him favour in the sight of the keeper of the prison.
Context
20 Joseph’s master took him, and put him into the prison, the place where the king’s prisoners were bound, and he was there in custody.
21 But the LORD was with Joseph, and showed kindness to him, and gave him favor in the sight of the keeper of the prison.
22 The keeper of the prison committed to Joseph’s hand all the prisoners who were in the prison. Whatever they did there, he was responsible for it.