The Egyptian who bought him said to his wife, "Lodge him honourably, he may prove of benefit to us, or we may even adopt him as our son." Thus We established Joseph in the land, so that We might teach him the true meaning of events. God has power over all things. However, most people do not know this. 21 And when he reached full manhood, We bestowed upon him the ability to judge [between right and wrong,] as well as [innate] knowledge: for thus do We reward the doers of good. 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 And they raced with one another to the door, and she tore his shirt from behind, and they met her lord and master at the door. She said: What shall be his reward, who wisheth evil to thy folk, save prison or a painful doom? 25 [Joseph] said, "It was she who sought to seduce me." And a witness from her family testified. "If his shirt is torn from the front, then she has told the truth, and he is of the liars. 26 But if his shirt is torn from behind, then she has lied, and he is truthful." 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 Joseph, disregard this. And you - woman - ask forgiveness for your sin, for indeed it is you who has been at fault." 29