Genesis 39:10-20

10 It happened that as she spoke to Yosef day by day, that he didn't listen to her, to lie by her, or to be with her.
11 It happened about this time, that he went into the house to do his work, and there were none of the men of the house inside.
12 She caught him by his garment, saying, "Lie with me!" He left his garment in her hand, and ran outside.
13 It happened, when she saw that he had left his garment in her hand, and had run outside,
14 that she called to the men of her house, and spoke to them, saying, "Behold, he has brought in a Hebrew to us to mock us. He came in to me to lie with me, and I cried with a loud voice.
15 It happened, when he heard that I lifted up my voice and cried, that he left his garment by me, and ran outside."
16 She laid up his garment by her, until his master came home.
17 She spoke to him according to these words, saying, "The Hebrew servant, whom you have brought to us, came in to me to mock me,
18 and it happened, as I lifted up my voice and cried, that he left his garment by me, and ran outside."
19 It happened, when his master heard the words of his wife, which she spoke to him, saying, "This is what your servant did to me," that his wrath was kindled.
20 Yosef's master took him, and put him into the prison, the place where the king's prisoners were bound, and he was there in the custody.