Genesis 39:19-23
39:19 When his master heard his wife say, “This is the way your slave treated me,” he became furious.
39:20 Joseph’s master took him and threw him into the prison, the place where the king’s prisoners were confined. So he was there in the prison.
39:21 But the Lord was with Joseph and showed him kindness. He granted him favor in the sight of the prison warden.
39:22 The warden put all the prisoners under Joseph’s care. He was in charge of whatever they were doing.
39:23 The warden did not concern himself with anything that was in Joseph’s care because the Lord was with him and whatever he was doing the Lord was making successful.