(12:23) And she, in whose house he was, sought to seduce him. She closed the doors and said, "Come, you." He said, "[I seek] the refuge of Allah. Indeed, he is my master, who has made good my residence. Indeed, wrongdoers will not succeed." (12:24) And she certainly determined [to seduce] him, and he would have inclined to her had he not seen the proof of his Lord. And thus [it was] that We should avert from him evil and immorality. Indeed, he was of Our chosen servants. (12:25) And they both raced to the door, and she tore his shirt from the back, and they found her husband at the door. She said, "What is the recompense of one who intended evil for your wife but that he be imprisoned or a painful punishment?" (12:26) [Joseph] said, "It was she who sought to seduce me." And a witness from her family testified. "If his shirt is torn from the front, then she has told the truth, and he is of the liars. (12:27) But if his shirt is torn from the back, then she has lied, and he is of the truthful." (12:28) So when her husband saw his shirt torn from the back, he said, "Indeed, it is of the women`s plan. Indeed, your plan is great. (12:29) Joseph, ignore this. And, [my wife], ask forgiveness for your sin. Indeed, you were of the sinful."