As for those of your women who are guilty of immoral conduct, call upon four from amongst you to bear witness against them. And if four men do bear witness, confine those women to their houses until either death takes them away or Allah opens some way for them. 15 If two among you commit it punish them both. If they repent and make amends, leave them alone. Allah is the Relenter, the Merciful. 16 But God undertakes to accept repentance only from those who do evil out of ignorance and those who repent soon after. God turns towards such people with mercy; He is all knowing and all wise. 17 Forgiveness is not for those who continue to do evil deeds until, when death comes upon one of them, he says: "Now I repent!" nor from those who die as deniers of the truth. We have prepared a painful punishment for them. 18 O you who believe! You are forbidden to inherit women against their will, and you should not treat them with harshness, that you may take away part of the Mahr you have given them, unless they commit open illegal sexual intercourse. And live with them honourably. If you dislike them, it may be that you dislike a thing and Allah brings through it a great deal of good. 19 If you want to divorce a woman so that you can marry another, do not take back the dowry which you had paid even if what you paid was a large amount of gold. To do this is a slanderous act and a manifest sin. 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