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 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 They raced to the door; and she tore his shirt from behind. They encountered her master by the door. She said, 'What is the recompense of him who purposes evil against thy folk, but that he should be imprisoned, or a painful chastisement?' 25 Joseph said: "It is she who was trying to tempt me to herself." And a witness belonging to her own household testified (on grounds of circumstantial evidence): "If his shirt is torn from the front, then she is telling the truth and he is a liar. 26 "But if it be that his shirt is torn from the back, then she has told a lie and he is speaking the truth!" 27 So when he saw his shirt torn from behind [her husband] said, "This is the guile of you women. Your guile is great indeed. 28 O Yusuf! turn aside from this; and (O my wife)! ask forgiveness for your fault, surely you are one of the wrong-doers. 29