Genesis 39:11 But one day, when he went into the house to do his work and none of the men of the house was there in the house, she caught him by his garment, saying, “Lie with me.” But he left his garment in her hand and fled and got out of the house. And as soon as she saw that he had left his garment in her hand and had fled out of the house, she called to the men of her household and said to them, “See, he has brought among us a Hebrew to laugh at us. He came in to me to lie with me, and I cried out with a loud voice. And as soon as he heard that I lifted up my voice and cried out, he left his garment beside me and fled and got out of the house.” Then she laid up his garment by her until his master came home, and she told him the same story, saying, “The Hebrew servant, whom you have brought among us, came in to me to laugh at me. But as soon as I lifted up my voice and cried, he left his garment beside me and fled out of the house.”
Potiphar’s wife knew Joseph avoided her, so she made a deliberate plan to trap him. Surely, it was she who arranged it that none of the men of the house was inside. Joseph resisted this tremendous moment of temptation when he ran outside. Joseph did what we are all supposed to do when faced with this kind of situation: he fled and ran. 2 Timothy 2:22 makes it clear: Flee also youthful lusts. If we are not actually running towards sin, we have a tendency to at least linger in its presence. But we are commanded to do the only safe thing: run away from these lusts of the flesh, and run as fast as we can. God provides a way of escape (1 Corinthians 10:13), but you have to take the way out. (Guzik)
How then can I do this great wickedness, and sin against God?—This remonstrance, when all inferior arguments had failed, embodied the true principle of moral purity—a principle always sufficient where it exists, and alone sufficient. (Jamieson-Fausset-Brown)
It is no new thing for the best of men to be falsely accused of the worst of crimes, by those who themselves are the worst of criminals. It is well there is a day of discovery coming, in which all shall appear in their true characters. (Henry)
Setting our heart and mind against sin requires us to understand what sin is. How are we to know what is offensive to God when we spend little to no time in His Word and far less time meditating on it and even less time seeking God to speak to us through it? Neglect and complacency will distort and blind us to things of God, holiness, godliness, and that which truly honors and glorifies Jesus Christ.