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 reached his maturity We vouchsafed unto him judgement and knowledge; and Thus We recompense the well-doers. 22 And the woman in whose house he was, allured him not to restrain himself and she closed all the doors – and said, “Come! It is you I address!”; he said, “(I seek) The refuge of Allah – indeed the governor is my master – he treats me well; undoubtedly the unjust never prosper.” 23 She was determined to have him and were it not for his faith in God, he would certainly have yielded to her. Thus did We protect him from evil and indecency. He was certainly one of Our sincere servants. 24 So they both raced each other to the door, and she tore his shirt from the back: they both found her lord near the door. She said: "What is the (fitting) punishment for one who formed an evil design against thy wife, but prison or a grievous chastisement?" 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 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 torn from behind, he said: Lo! this is of the guile of you women. Lo! the guile of you is very great. 28 Joseph, stay away from such affairs and you, woman, ask forgiveness for your sin; the guilt is yours." 29