AND AS FOR those of your women who become guilty of immoral conduct, call upon four from among you who have witnessed their guilt; and if these bear witness thereto, confine the guilty women to their houses until death takes them away or God opens for them a way [through repentance]. 15 If two men among you are guilty of lewdness, punish them both. If they repent and amend, Leave them alone; for Allah is Oft-returning, 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 of no effect is the repentance of those who continue to do evil deeds until death faces one of them and he says: "Now I repent;" nor of those who die while they are disbelievers. For them We have prepared a painful torment. 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 But if you want to replace one wife with another and you have given one of them a great amount [in gifts], do not take [back] from it anything. Would you take it in injustice and manifest sin? 20 And how could you take it (back) while you have gone in unto each other, and they have taken from you a firm and strong covenant? 21 And marry not women whom your fathers married, except what has already passed; indeed it was shameful and most hateful, and an evil way. 22