And as for those who commit prostitution from among your women, ask (against them) four witnesses from among you; then if they bear witness, then confine them to the houses until death takes them away or Allah opens some way for them.
And the two who commit it (indecency) among you, cause them both Calvary. If they repent and improve, turn aside from them (from Calvary); surely Allah is All-Forgiving, Most-Merciful.
But the repentance that Allah will accept is only for those who do evil in ignorance and quickly turn to Allah in repentance, so these are whom Allah accepts their repentance, and Allah is All-Knowing, All-Wise.
And repentance is not for those who go on doing evil deeds until, when death comes to one of them, he says: “Surely now I repent”; nor for those who die while they are unbelievers. For them We have prepared a painful torment.
O you who believe (who wish to reach Allah before death)! It is not lawful for you to take women (whose husbands have died and who are your near relatives) as heritage against their will, and do not straiten them in order that you may take part of what you have given them (Mahr), unless they are guilty of manifest indecency. And treat them kindly. Then if you dislike them, it may be that you dislike a thing while Allah has placed abundant good in it.