New International Version
19 When his master heard the story his wife told him, saying, “This is how your slave treated me,” he burned with anger.(A) 20 Joseph’s master took him and put him in prison,(B) the place where the king’s prisoners were confined.
But while Joseph was there in the prison, 21 the Lord was with him;(C) he showed him kindness(D) and granted him favor in the eyes of the prison warden.(E) 22 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.(F) 23 The warden paid no attention to anything under Joseph’s(G) care, because the Lord was with Joseph and gave him success in whatever he did.(H)
The Cupbearer and the Baker
40 Some time later, the cupbearer(I) and the baker(J) of the king of Egypt offended their master, the king of Egypt. 2 Pharaoh was angry(K) with his two officials,(L) the chief cupbearer and the chief baker, 3 and put them in custody in the house of the captain of the guard,(M) in the same prison where Joseph was confined.