Genesis 39:2-12

2 The Lord was with Joseph, and he was a successful man; and he was in the house of his master the Egyptian.
3 And his master saw that the Lord was with him and that the Lord made all he did to prosper in his hand.
4 So Joseph found favor in his sight, and served him. Then he made him overseer of his house, and all that he had he put under his authority.
5 So it was, from the time that he had made him overseer of his house and all that he had, that the Lord blessed the Egyptian's house for Joseph's sake; and the blessing of the Lord was on all that he had in the house and in the field.
6 Thus he left all that he had in Joseph's hand, and he did not know what he had except for the bread which he ate. Now Joseph was handsome in form and appearance.
7 And it came to pass after these things that his master's wife cast longing eyes on Joseph, and she said, "Lie with me."
8 But he refused and said to his master's wife, "Look, my master does not know what is with me in the house, and he has committed all that he has to my hand.
9 There is no one greater in this house than I, nor has he kept back anything from me but you, because you are his wife. How then can I do this great wickedness, and sin against God?"
10 So it was, as she spoke to Joseph day by day, that he did not heed her, to lie with her or to be with her.
11 But it happened about this time, when Joseph went into the house to do his work, and none of the men of the house was inside,
12 that she caught him by his garment, saying, "Lie with me." But he left his garment in her hand, and fled and ran outside.