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 And when he had attained his maturity, We gave him wisdom and knowledge: and thus do We reward those who do good. 22 And it so happened that the lady in whose house Joseph was living, sought to tempt him to herself, and one day bolting the doors she said: "Come on now!" Joseph answered: "May Allah grant me refuge! My Lord has provided an honourable abode for me (so how can I do something so evil)? Such wrong-doers never prosper." 23 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. 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 [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 But if the shirt is torn from behind then she is a liar, and he speaks the truth." 27 So when the governor saw his shirt torn from behind, he said, “Indeed this is a deception of women; undoubtedly the deception of women is very great.” 28 "O Yusuf (Joseph)! Turn away from this! (O woman!) Ask forgiveness for your sin. Verily, you were of the sinful." 29