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 matured to his full strength, We bestowed him wisdom and knowledge; and this is how We reward the virtuous. 22 His master's wife then tried to seduce him. She locked the doors and said to him, "Come on." He said, "I seek refuge in God who has given me a good place of shelter. The unjust will certainly have no happiness." 23 And indeed, she desired him, and he desired her; [and he would have succumbed] had he not seen [in this temptation] an evidence of his Sustainer's truth: thus [We willed it to be] in order that We might avert from him all evil and all deeds of abomination - for, behold, he was truly one of Our servants. 24 Both of them raced to the door, and she (grabbed and) rent his shirt from behind. They met her lord outside the door. "There is no other penalty for a man," said she, "who wanted to outrage your wife but imprisonment or grievous punishment." 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 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 Joseph, ignore this. And, [my wife], ask forgiveness for your sin. Indeed, you were of the sinful." 29