And when two of you commit it punish them both; but if they repent and make amends then leave them be. God ever turns [relenting] and is Merciful. The command to various modes of punishment for those who do this act is the strongest way to kindly communicate [the advice] to prevent and stay away from it so that the servant might be on his guard and not become deserving of the greater punishment.
- 4:1616
وَاللَّذَانِ يَأْتِيَانِهَا مِنْكُمْ فَآذُوهُمَا ۖ فَإِنْ تَابَا وَأَصْلَحَا فَأَعْرِضُوا عَنْهُمَا ۗ إِنَّ اللَّهَ كَانَ تَوَّابًا رَحِيمًا
And as for those twain of you who commit it, hurt them both; then, if they repent and amend, turn away from them; verily Allah is Relenting, Merciful.
- common.revelation-Medinan
- common.hizb : 32