The Egyptian who bought him instructed his wife: "House him honourably. He may be of use to us. We may even adopt him as a son." So, We firmly established Joseph in the land, and taught him the interpretation of dreams. God dominated in his affairs, though most men do not know. 21 When he attained maturity, God gave him strength, wisdom and knowledge. 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 indeed she did desire him and he would have inclined to her desire, had he not seen the evidence of his Lord. Thus it was, that We might turn away from him evil and illegal sexual intercourse. Surely, he was one of Our chosen, guided slaves. 24 They raced to the door and she tore his shirt from behind. And by the door, they met her husband whereupon she said: 'What is the recompense of one whose intent is evil against your people other than being imprisoned, or sternly punished' 25 Said Yusuf, “It was she who lured me, that I may not guard myself” – and a witness from her own household testified; “If his shirt is torn from the front, then the woman is truthful and he has spoken incorrectly.” 26 But if his shirt is torn from behind, then she has lied, and he is truthful." 27 So when he saw his shirt torn from behind [her husband] said, "This is the guile of you women. Your guile is great indeed. 28 [But,] Joseph, let this pass! And thou, [O wife,] ask forgiveness for thy sin - for, verily, thou hast been greatly at fault!" 29