The man from Egypt who bought him said to his wife: "Take good care of him, possibly he might be of benefit to us or we might adopt him as a son." Thus We found a way for Joseph to become established in that land and in order that We might teach him to comprehend the deeper meaning of things. Allah has full power to implement His design although most people do not know that. 21 And when he had attained his maturity, We gave him wisdom and knowledge: and thus do We reward those who do good. 22 Now the woman in whose house he was solicited him, and closed the doors on them. 'Come,' she said, 'take me!' 'God be my refuge,' he said. 'Surely my lord has given me a goodly lodging. Surely the evildoers do not 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 And they both raced to the door, and she tore his shirt from the back, and they found her husband at the door. She said, "What is the recompense of one who intended evil for your wife but that he be imprisoned or a painful punishment?" 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 rent from behind, he said: Surely it is a guile of you women; surely your guile is great: 28 "O Yusuf (Joseph)! Turn away from this! (O woman!) Ask forgiveness for your sin. Verily, you were of the sinful." 29