وَٱلَّذَانِ يَأْتِيَـٰنِهَا مِنكُمْ فَـَٔاذُوهُمَا ۖ فَإِن تَابَا وَأَصْلَحَا فَأَعْرِضُوا۟ عَنْهُمَآ ۗ إِنَّ ٱللَّهَ كَانَ تَوَّابًا رَّحِيمًا
wa-alladhāni yatiyānihā minkum faādhūhumā fa-in tābā wa-aṣlaḥā fa-aʿriḍū ʿanhumā inna l-laha kāna tawwāban raḥīman
If two men commit a lewd act, punish them both; if they repent and mend their ways, leave them alone- God is always ready to accept repentance, He is full of mercy.
And the two persons (man and woman) among you who commit illegal sexual intercourse, hurt them both. And if they repent (promise Allâh that they will never repeat, i.e. commit illegal sexual intercourse and other similar sins) and do righteous good deeds, leave them alone. Surely, Allâh is Ever All-Forgiving (the One Who forgives and accepts repentance), (and He is) Most Merciful.