Surah An-Noor

24:2

ٱلزَّانِيَةُ وَٱلزَّانِى فَٱجْلِدُوا۟ كُلَّ وَٰحِدٍۢ مِّنْهُمَا مِا۟ئَةَ جَلْدَةٍۢ ۖ وَلَا تَأْخُذْكُم بِهِمَا رَأْفَةٌۭ فِى دِينِ ٱللَّهِ إِن كُنتُمْ تُؤْمِنُونَ بِٱللَّهِ وَٱلْيَوْمِ ٱلْءَاخِرِ ۖ وَلْيَشْهَدْ عَذَابَهُمَا طَآئِفَةٌۭ مِّنَ ٱلْمُؤْمِنِينَ

The [unmarried] woman or [unmarried] man found guilty of sexual intercourse - lash each one of them with a hundred lashes, and do not be taken by pity for them in the religion of Allah, if you should believe in Allah and the Last Day. And let a group of the believers witness their punishment.

Tafsir 24:2

The unmarried fornicating man and woman - flog each one of them with a hundred lashes, and no softness or mercy should affect you, whereby you do not establish the fixed punishment upon them or you make it lighter for them, if you believe in Allah and the Last Day. And a group of believers should be present when the fixed punishment is being executed on them, to go to the limit of publicising their crime, and to deter them and others.