He that bought him, being of Egypt, said to his wife, 'Give him goodly lodging, and it may be that he will profit us, or we may take him for our own son.' So We established Joseph in the land, and that We might teach him the interpretation of tales. God prevails in His purpose, but most men know not. 21 And when he was fully grown, We gave him judgment and knowledge. Even so We recompense the good-doers. 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 She verily desired him, and he would have desired her if it had not been that he saw the argument of his Lord. Thus it was, that We might ward off from him evil and lewdness. Lo! he was of Our chosen slaves. 24 So they raced with one another to the door, and she tore his shirt from the back. They both found her lord (i.e. her husband) at the door. She said: "What is the recompense (punishment) for him who intended an evil design against your wife, except that he be put in prison or a painful torment?" 25 He said: "It was she that sought to seduce me - from my (true) self." And one of her household saw (this) and bore witness, (thus):- "If it be that his shirt is rent from the front, then is her tale true, and he is a liar! 26 "But if it be that his shirt is torn from the back, then is she the liar, and he is telling the truth!" 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 Ignore this affair, O Joseph; and you, O woman, ask forgiveness for your sin, for you were surely errant." 29