20So Joseph’s master took him and had him thrown into the prison where the king’s prisoners were confined. While Joseph was there in the prison,
21the LORD was with him and extended kindness to him, granting him favor in the eyes of the prison warden.
22And the warden put all the prisoners under Joseph’s care, so that he was responsible for all that was done in the prison.
23The warden did not concern himself with anything under Joseph’s care, because the LORD was with Joseph and gave him success in whatever he did.
— Genesis 39:20-23