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 reached the prime of life We gave him wisdom and knowledge. Thus We reward those who are good. 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 For she desired him; and he would have taken her, but that he saw the proof of his Lord. So was it, that We might turn away from him evil and abomination; he was one of Our devoted servants. 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 Joseph said, "It was she who sought to seduce me." One of her household testified, "If his shirt is torn at the front then she is speaking the truth, and he is lying. 26 And if his shirt is torn from behind, then she hath lied and he is of the truthful. 27 So when he (her husband) saw his [(Yusuf's (Joseph)] shirt torn at the back; (her husband) said: "Surely, it is a plot of you women! Certainly mighty is your plot! 28 Joseph, stay away from such affairs and you, woman, ask forgiveness for your sin; the guilt is yours." 29