Genesis 39:1-20 (New American Standard)
Out of jellousy from his brothers, Joseph is sold into slavery . . .
2 The LORD was with Joseph, so he became a successful man. And he was in the house of his master, the Egyptian.
3 Now his master saw that the LORD was with him and how the LORD caused all that he did to prosper in his hand.
4 So Joseph found favor in his sight and became his personal servant; and he made him overseer over his house, and all that he owned he put in his charge.
5 It came about that from the time he made him overseer in his house and over all that he owned, the LORD blessed the Egyptian's house on account of Joseph; thus the LORD'S blessing was upon all that he owned, in the house and in the field.
6 So he left everything he owned in Joseph's charge; and with him there he did not concern himself with anything except the food which he ate. Now Joseph was handsome in form and appearance.
7 It came about after these events that his master's wife looked with desire at Joseph, and she said, "(11) Lie with me."
8 But he refused and said to his master's wife, "Behold, with me here, my master does not concern himself with anything in the house, and he has put all that he owns in my charge.
9 "There is no one greater in this house than I, and he has withheld nothing from me except you, because you are his wife. How then could I do this great evil and sin against God?"
10 As she spoke to Joseph day after day, he did not listen to her to lie beside her or be with her.
11 Now it happened one day that he went into the house to do his work, and none of the men of the household was there inside.
12 She caught him by his garment, saying, "Lie with me!" And he left his garment in her hand and fled, and went outside.
13 When she saw that he had left his garment in her hand and had fled outside,
14 she called to the men of her household and said to them, "See, he has brought in a Hebrew to us to make sport of us; he came in to me to lie with me, and I screamed.
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.
22 And when he had attained his maturity, We gave him wisdom and knowledge: and thus do We reward those who do good.
23 And she in whose house he was sought to make himself yield (to her), and she made fast the doors and said: Come forward. He said: I seek Allah's refuge, surely my Lord made good my abode: Surely the unjust do not prosper.
24 And certainly she made for him, and he would have made for her, were it not that he had seen the manifest evidence of his Lord; thus (it was) that We might turn away from him evil and indecency, surely he was one of Our sincere servants.
25 And they both hastened to the door, and she rent his shirt from behind and they met her husband at the door. She said: What is the punishment of him who intends evil to your wife except imprisonment or a painful chastisement?
26 He said: She sought to make me yield (to her); and a witness of her own family bore witness: If his shirt is rent from front, she speaks the truth and he is one of the liars:
27 And if his shirt is rent from behind, she tells a lie and he is one of the truthful.
28 So when he saw his shirt rent from behind, he said: Surely it is a guile of you women; surely your guile is great:
29 O Yusuf! turn aside from this; and (O my wife)! ask forgiveness for your fault, surely you are one of the wrong-doers.
30 And women in the city said: The chiefs wife seeks her slave to yield himself (to her), surely he has affected her deeply with (his) love; most surely we see her in manifest error.
31 So when she heard of their sly talk she sent for them and prepared for them a repast, and gave each of them a knife, and said (to Yusuf): Come forth to them. So when they saw him, they deemed him great, and cut their hands (in amazement), and said: Remote is Allah (from inperfection); this is not a mortal; this is but a noble angel.
32 She said: This is he with respect to whom you blamed me, and certainly I sought his yielding himself (to me), but he abstained, and if he does not do what I bid him, he shall certainly be imprisoned, and he shall certainly be of those who are in a state of ignominy.
33 He said: My Lord! the prison house is dearer to me than that to which they invite me; and if Thou turn not away their device from me, I will yearn towards them and become (one) of the ignorant.
34 Thereupon his Lord accepted his prayer and turned away their guile from him; surely He is the Hearing, the Knowing.
35 And it seemed good to them (the men-folk) after they had seen the signs (of his innocence) to imprison him for a time.