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 And when Joseph reached the age of maturity, We granted him judgement and knowledge. Thus do We reward those who do good. 22 And she, in whose house he was, sought to seduce him and closed the doors saying: 'Come' 'In Allah is my refuge' he replied. 'My Lord has made my dwelling a good one. Harmdoers never 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 And they both raced towards the door, and the woman tore his shirt from behind, and they both found her husband at the door; she said, “What is the punishment of the one who sought evil with your wife, other than prison or a painful torture?” 25 Joseph said, "It was she who tried to seduce me." Someone from the household in confirmation of Joseph's statement said, "If his shirt it torn from the front, she has spoken the truth and he is lying, 26 but if his tunic has been torn from behind, then she is lying, and he is speaking 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 [But,] Joseph, let this pass! And thou, [O wife,] ask forgiveness for thy sin - for, verily, thou hast been greatly at fault!" 29