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 And indeed the woman desired him; and he too would have desired her were he not to witness the sign of his Lord*; this is what We did, to turn away evil and lewdness from him; indeed He is one of Our chosen bondmen. (* Allah saved him and he never desired this immorality.) 24 And the twain raced to the door, and she rent his shirt from behind, and the twain met her master at the door. She said: What is the meed of him who intended evil toward thy household except that he be imprisoned, or a torment afflictive? 25 He said: "It was she that sought to seduce me - from my (true) self." And one of her household saw (this) and bore witness, (thus):- "If it be that his shirt is rent from the front, then is her tale true, and he is a liar! 26 But if his shirt is torn from the back, then she has lied, and he is of the truthful." 27 So when the husband saw Joseph's shirt torn from behind he exclaimed: "Surely, this is one of the tricks of you women; your tricks are indeed great. 28 Ignore this affair, O Joseph; and you, O woman, ask forgiveness for your sin, for you were surely errant." 29