The Holy Quran 4:16 — Surah An-Nisa
Arabic text
وَٱلَّذَانِ يَأْتِيَـٰنِهَا مِنكُمْ فَـَٔاذُوهُمَا ۖ فَإِن تَابَا وَأَصْلَحَا فَأَعْرِضُوا۟ عَنْهُمَآ ۗ إِنَّ ٱللَّهَ كَانَ تَوَّابًا رَّحِيمًا
Translation
The two who do this (behave indecently by committing fornication or homosexuality) from among you should be punished (according to the discretion of the Muslim judge). If they repent and improve (their behaviour), then let them be (do not harass, taunt or criticise them after their punishment). Verily Allaah is Most Accepting of repentance, Most Merciful (so obey Him).
Tafsir (excerpt) — Tafsir Usmani
That is, if two persons, whether a man and a woman or both men, commit the indecent act, their punishment has been stated in general terms as inflicting hurt: the command was to admonish and discipline them to a fitting degree, by tongue and by hand.
Preview. The full text opens with JavaScript enabled.