Genesis 39:19-40:8
English Standard Version
19 As soon as his master heard the words that his wife spoke to him, “This is the way your servant treated me,” his anger was kindled. 20 And Joseph's master took him and (A)put him into the (B)prison, the place where the king's prisoners were confined, and he was there in prison. 21 But (C)the Lord was with Joseph and showed him steadfast love (D)and gave him favor in the sight of the keeper of the prison. 22 And the keeper of the prison (E)put Joseph in charge of all the prisoners who were in the prison. Whatever was done there, he was the one who did it. 23 The keeper of the prison paid no attention to anything that was in Joseph's charge, because (F)the Lord was with him. And whatever he did, the Lord made it succeed.
Joseph Interprets Two Prisoners' Dreams
40 Some time after this, the (G)cupbearer of the king of Egypt and his baker committed an offense against their lord the king of Egypt. 2 And Pharaoh was angry with his two officers, the chief cupbearer and the chief baker, 3 (H)and he put them in custody in the house of the captain of the guard, in the prison where Joseph was confined. 4 The captain of the guard appointed Joseph to be with them, and he attended them. They continued for some time in custody.
5 And one night they both dreamed—the cupbearer and the baker of the king of Egypt, who were confined in the prison—each his own dream, and each dream with its own interpretation. 6 When Joseph came to them in the morning, he saw that they were troubled. 7 So he asked Pharaoh's officers who were with him in custody in his master's house, (I)“Why are your faces downcast today?” 8 They said to him, (J)“We have had dreams, and there is no one to interpret them.” And Joseph said to them, (K)“Do not interpretations belong to God? Please tell them to me.”
The Holy Bible, English Standard Version. ESV® Text Edition: 2016. Copyright © 2001 by Crossway Bibles, a publishing ministry of Good News Publishers.