Aliya Summary: Joseph was exceedingly handsome, and Potifar’s wife was attracted to him. She made many advances on him, but he steadfastly rebuffed her. Eventually she libelously told her husband that Joseph was making advances on her, and Potifar had Joseph thrown into prison. G‑d was still with Joseph, and he found favor in the eyes of the prison warden, who put him in charge of all the prisoners.
The Sfat Emet calls our attention to to sequence of verbs – “And he refused”, “and he said”… First and foremost, when a person is being led into temptation they must stand firm and refuse to give in. Then, if warranted, they can explain their reasons.