An-Nisaa • EN-AL-QUSHAIRI-TAFSIR
﴿ وَٱلَّذَانِ يَأْتِيَٰنِهَا مِنكُمْ فَـَٔاذُوهُمَا ۖ فَإِن تَابَا وَأَصْلَحَا فَأَعْرِضُوا۟ عَنْهُمَآ ۗ إِنَّ ٱللَّهَ كَانَ تَوَّابًۭا رَّحِيمًا ﴾
“And punish [thus] both of the guilty parties; but if they both repent and mend their ways, leave them alone: for, behold, God is an acceptor of repentance, a dispenser of grace.”
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.