The man from Egypt who bought him said to his wife: "Take good care of him, possibly he might be of benefit to us or we might adopt him as a son." Thus We found a way for Joseph to become established in that land and in order that We might teach him to comprehend the deeper meaning of things. Allah has full power to implement His design although most people do not know that. 21 And when Joseph reached maturity, We gave him judgment and knowledge. And thus We reward the doers of good. 22 But she in whose house he resided wished to seduce him and, closing the doors, said: "Come into me. "God forbid!" he said; "he is my master who has approved my stay. Surely those who act wrongly 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 towards the door, and the woman tore his shirt from behind, and they both found her husband at the door; she said, “What is the punishment of the one who sought evil with your wife, other than prison or a painful torture?” 25 Joseph said, "It was she who tried to seduce me." Someone from the household in confirmation of Joseph's statement said, "If his shirt it torn from the front, she has spoken the truth and he is lying, 26 “And if his shirt is torn from behind, then the woman is a liar and he is truthful.” 27 When he saw his shirt was torn from behind he said, 'This is of your women's guile; surely your guile is great. 28 "O Yusuf (Joseph)! Turn away from this! (O woman!) Ask forgiveness for your sin. Verily, you were of the sinful." 29