And the man from Egypt who bought him said to his wife: "Make his stay [with us] honourable; he may well be of use to us, or we may adopt him as a son. And thus We gave unto Joseph a firm place on earth; and [We did this] so that We might impart unto him some understanding of the inner meaning of happenings. For, God always prevails in whatever be His purpose: but most people know it not. 21 And when he reached maturity, We bestowed on him judgment and knowledge. As such We recompense those who do good. 22 But she in whose house he resided wished to seduce him and, closing the doors, said: "Come into me. "God forbid!" he said; "he is my master who has approved my stay. Surely those who act wrongly do not prosper." 23 And (with passion) did she desire him, and he would have desired her, but that he saw the evidence of his Lord: thus (did We order) that We might turn away from him (all) evil and shameful deeds: for he was one of Our servants, sincere and purified. 24 Then both of them rushed to the door, each seeking to get ahead of the other, and she tore Joseph's shirt from behind. Then both of them found the husband of the lady at the door. Seeing him she said: "What should be the punishment of him who has foul designs on your wife except that he should be imprisoned or subjected to painful chastisement?" 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 And when [her husband] saw that his tunic was torn from behind, he said: "Behold, this is [an instance] of your guile, O womankind! Verily, awesome is your guile! 28 "O Joseph, pass this over! (O wife), ask forgiveness for thy sin, for truly thou hast been at fault!" 29