As for those of your women who are guilty of lewdness, call to witness four of you against them. And if they testify (to the truth of the allegation) then confine them to the houses until death take them or (until) Allah appoint for them a way (through new legislation). 15 And when two of you commit indecency, punish them both; but if they repent and make amends, then suffer them to be; God turns, and is All-compassionate. 16 Allah accept the repentance of those who do evil in ignorance and repent soon afterwards; to them will Allah turn in mercy: For Allah is full of knowledge and wisdom. 17 (Allah will accept) no repentance from those who do evil deeds until death comes to one of them, he says: 'Now I repent' Nor those who die unbelieving. For those We have prepared a painful punishment. 18 O Ye who believe! it is not allowed unto you that ye may heir the women forcibly; nor shut them up that ye may take away from them part of that which ye had given them, except when they be guilty of manifest enormity. And live with them reputably; if ye detest them, belike ye detest a thing and yet Allah hath placed therein abundant good. 19 If you desire to replace one wife with another, do not take any part of her dower back: even if you have given her a treasure. Would you take it by slandering her and with manifest sinfulness? 20 And how will you take it back whereas you have become unveiled before each other, and they have taken a strong pledge from you? 21 Do not marry the women whom your fathers married, although what is past is past. This indeed was a shameful deed, a hateful thing, and an evil way. 22