Gen 39:6-20

6So he left all that he had in Joseph's charge; and, with him there, he had no concern for anything but the food that he ate. Now Joseph was handsome and good-looking.7And after a time his master's wife cast her eyes on Joseph and said, “Lie with me.”8But he refused and said to his master's wife, “Look, with me here, my master has no concern about anything in the house, and he has put everything that he has in my hand.9He is not greater in this house than I am, nor has he kept back anything from me except yourself, because you are his wife. How then could I do this great wickedness, and sin against God?”10And although she spoke to Joseph day after day, he would not consent to lie beside her or to be with her.11One day, however, when he went into the house to do his work, and while no one else was in the house,12she caught hold of his garment, saying, “Lie with me!” But he left his garment in her hand, and fled and ran outside.13When she saw that he had left his garment in her hand and had fled outside,14she called out to the members of her household and said to them, “See, my husband has brought among us a Hebrew to insult us! He came in to me to lie with me, and I cried out with a loud voice;15and when he heard me raise my voice and cry out, he left his garment beside me, and fled outside.”16Then she kept his garment by her until his master came home,17and she told him the same story, saying, “The Hebrew servant, whom you have brought among us, came in to me to insult me;18but as soon as I raised my voice and cried out, he left his garment beside me, and fled outside.”19When his master heard the words that his wife spoke to him, saying, “This is the way your servant treated me,” he became enraged.20And Joseph's master took him and put him into the prison, the place where the king's prisoners were confined; he remained there in prison.