If any of your women commit fornication, call in four male witnesses from among yourselves against them; if they testify to their guilt, confine them to the house until death releases them or until God gives them another way out. 15 And the two persons (man and woman) among you who commit illegal sexual intercourse, punish them both. And if they repent (promise Allah that they will never repeat, i.e. commit illegal sexual intercourse and other similar sins) and do righteous good deeds, leave them alone. Surely, Allah is Ever the One Who accepts repentance, (and He is) Most Merciful. 16 (And remember that) Allah's acceptance of repentance is only for those who commit evil out of ignorance and then soon repent. It is towards such persons that Allah turns graciously. Allah is All-Knowing, All-Wise. 17 And that repentance is not of those who constantly commit sins, and when death approaches one of them, he says, “I repent now”, nor of those who die as disbelievers; for them, We have kept prepared a painful punishment. 18 Believers! It is not lawful for you to become heirs to women against their will. It is not lawful that you should put constraint upon them that you may take away anything of what you have given them; (you may not put constraint upon them) unless they are guilty of brazenly immoral conduct. Live with your wives in a good manner. If you dislike them in any manner, it may be that you dislike something in which Allah has placed much good for you. 19 And if ye wish to exchange one wife for another and ye have given unto one of them a sum of money (however great), take nothing from it. Would ye take it by the way of calumny and open wrong? 20 How shall you take it, when each of you has been privily with the other, and they have taken from you a solemn compact? 21 Do not marry, from now on, the ex-wives of your fathers for that custom was sinful, loathsome, and abominable. 22