Take from me. Verily Allah has ordained a way for them (the women who commit fornication),: (When) a married man (commits adultery) with a married woman, and an unmarried male with an unmarried woman, then in case of married (persons) there is (a punishment) of one hundred lashes and then stoning (to death). And in case of unmarried persons, (the punishment) is one hundred lashes and exile for one year. (Using translation from Muslim 1690c)
كَانَ رَسُولُ اللهِ ﷺ إِذَا نُزِّلَ عَلَيْهِ كَرِبَ لِذَلِكَ وَتَرَبَّدَ لَهُ وَجْهُهُ فَنُزِّلَ عَلَيْهِ ذَاتَ يَوْمٍ فَلَقِيَ ذَلِكَ فَلَمَّا سُرِّيَ عَنْهُ قَالَ «خُذُوا عَنِّي قَدْ جَعَلَ اللهُ لَهُنَّ سَبِيلًا الْبِكْرُ بِالْبِكْرِ جَلْدِ مِائَةٍ وَنَفْيُ سَنَةٍ وَالثَّيِّبُ بِالثَّيِّبِ جَلْدُ مِائَةٍ وَالرَّجْمُ»