Gen 39:21-23

21But the Lord was with Joseph and showed him steadfast love; he gave him favor in the sight of the chief jailer.22The chief jailer committed to Joseph's care all the prisoners who were in the prison, and whatever was done there, he was the one who did it.23The chief jailer paid no heed to anything that was in Joseph's care, because the Lord was with him; and whatever he did, the Lord made it prosper.