And the one from Egypt who bought him said to his wife, "Make his residence comfortable. Perhaps he will benefit us, or we will adopt him as a son." And thus, We established Joseph in the land that We might teach him the interpretation of events. And Allah is predominant over His affair, but most of the people do not know. 21 And And when he reached his prime We gave him wisdom and knowledge. Thus We reward the good. 22 And [it so happened that] she in whose house he was living [conceived a passion for him and] sought to make him yield himself unto her; and she bolted the doors and said, "Come thou unto me!" [But Joseph] answered: "May God preserve me! Behold, goodly has my master made my stay [in this house]! Verily, to no good end come they that do [such] wrong!" 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 Then both of them rushed to the door, each seeking to get ahead of the other, and she tore Joseph's shirt from behind. Then both of them found the husband of the lady at the door. Seeing him she said: "What should be the punishment of him who has foul designs on your wife except that he should be imprisoned or subjected to painful chastisement?" 25 He [Yusuf (Joseph)] said: "It was she that sought to seduce me," - and a witness of her household bore witness (saying): "If it be that his shirt is torn from the front, then her tale is true and he is a liar! 26 And if his shirt is rent from behind, she tells a lie and he is one of the truthful. 27 So when he saw his shirt rent from behind, he said: verily it is of the guile of ye women; verily the guile of ye women is mighty. 28 Yusuf! turn away therefrom; and, thou woman! ask forgiveness for thy sin; verily thou hast been of the guilty. 29