Genesis 39:20-22
Genesis 39:20-22 NIV
Joseph’s master took him and put him in prison, the place where the king’s prisoners were confined. But while Joseph was there in the prison, the LORD was with him; he showed him kindness and granted him favor in the eyes of the prison warden. So the warden put Joseph in charge of all those held in the prison, and he was made responsible for all that was done there.