The man in Egypt who bought him, said to his wife: "Make his stay (among us) honourable: may be he will bring us much good, or we shall adopt him as a son." Thus did We establish Joseph in the land, that We might teach him the interpretation of stories (and events). And Allah hath full power and control over His affairs; but most among mankind know it 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, solicited him against himself; and she fastened the doors, and said: come on, O thou! He said: Allah be my refuge: verily he is my lord; he hath made me a goodly dwelling; verily the wrong-doers fare not well. 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 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 (Joseph) said: "It was she who wanted to seduce me." And a witness from her family testified: "If the shirt is torn from the front then the woman is speaking the truth, and he is a liar. 26 And if his shirt is torn from behind, then she hath lied and he is of the truthful. 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 O Yusuf! turn aside from this; and (O my wife)! ask forgiveness for your fault, surely you are one of the wrong-doers. 29