And the Egyptian who purchased him said to his wife, “Keep him honourably – we may derive some benefit due to him or we may adopt him as our son”; and this is how we established Yusuf in the land, and that We might teach him how to interpret events; and Allah is Dominant upon His works, but most men do not know. 21 When he reached the prime of life We gave him wisdom and knowledge. Thus We reward those who are good. 22 And she in whose house he was sought to make himself yield (to her), and she made fast the doors and said: Come forward. He said: I seek Allah's refuge, surely my Lord made good my abode: Surely the unjust do not prosper. 23 And indeed, she desired him, and he desired her; [and he would have succumbed] had he not seen [in this temptation] an evidence of his Sustainer's truth: thus [We willed it to be] in order that We might avert from him all evil and all deeds of abomination - for, behold, he was truly one of Our servants. 24 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?" 25 He said: it is she who solicited me against myself. And a witness from her own household bare witness: if his shirt be rent in front, then she speaketh the truth and he is of the liars. 26 And if his shirt be rent from behind, then she lieth, and he is of the truth-tellers. 27 When the husband saw the shirt torn at the back, he said: "Surely this is a woman's ruse, and the wiles of women are great. 28 O Yusuf! turn aside from this; and (O my wife)! ask forgiveness for your fault, surely you are one of the wrong-doers. 29