New American Standard Bible (NASB)
Genesis 39
15 When he heard that I raised my voice and screamed, he left his garment beside me and fled and went outside."
16 So she left his garment beside her until his master came home.
17 Then she spoke to him with these words, "The Hebrew slave, whom you brought to us, came in to me to make sport of me;
18 and as I raised my voice and screamed, he left his garment beside me and fled outside."
19 Now when his master heard the words of his wife, which she spoke to him, saying, "This is what your slave did to me," his anger burned.
20 So Joseph’s master took him and put him into the jail, the place where the king’s prisoners were confined; and he was there in the jail.
21 But the Lord was with Joseph and extended kindness to him, and gave him favor in the sight of the chief jailer.
22 The chief jailer committed to Joseph’s charge all the prisoners who were in the jail; so that whatever was done there, he was responsible for it.
23 The chief jailer did not supervise anything under Joseph’s charge because the Lord was with him; and whatever he did, the Lord made to prosper.
Genesis 40
1 Then it came about after these things, the cupbearer and the baker for the king of Egypt offended their lord, the king of Egypt.
2 Pharaoh was furious with his two officials, the chief cupbearer and the chief baker.