A man from Bani Aslam came to Messenger of Allah ﷺ while he was in the mosque and called (the Prophet ﷺ ) saying, "O Messenger of Allah ﷺ! I have committed illegal sexual intercourse." On that the Prophet ﷺ turned his face from him to the other side, whereupon the man moved to the side towards which the Prophet ﷺ had turned his face, and said, "O Messenger of Allah ﷺ! I have committed illegal sexual intercourse." The Prophet turned his face (from him) to the other side whereupon the man moved to the side towards which the Prophet ﷺ had turned his face, and repeated his statement. The Prophet ﷺ turned his face (from him) to the other side again. The man moved again (and repeated his statement) for the fourth time. So when the man had given witness four times against himself, the Prophet ﷺ called him and said, "Are you insane?" He replied, "No." The Prophet ﷺ then said (to his companions), "Go and stone him to death." The man was a married one. Jabir bin ʿAbdullah Al-Ansari said: I was one of those who stoned him. We stoned him at the Musalla (ʿId praying place) in Medina. When the stones hit him with their sharp edges, he fled, but we caught him at Al-Harra and stoned him till he died. (Using translation from Bukhārī 5271)
أَتَى رَجُلٌ مِنْ أَسْلَمَ رَسُولَ اللهِ ﷺ وَهُوَ فِي الْمَسْجِدِ فَنَادَاهُ فَقَالَ يَا رَسُولَ اللهِ إِنَّ الْآخَرَ زَنَى يَعْنِي نَفْسَهُ فَأَعْرَضَ عَنْهُ رَسُولُ اللهِ ﷺ فَتَنَحَّى لِشِقِّ وَجْهِهِ الَّذِي أَعْرَضَ قِبَلَهُ فَقَالَ يَا رَسُولَ اللهِ إِنَّ الْآخَرَ زَنَى فَأَعْرَضَ عَنْهُ رَسُولُ اللهِ ﷺ فَتَنَحَّى لِشِقِّ وَجْهِهِ الَّذِي أَعْرَضَ قِبَلَهُ فَقَالَ يَا رَسُولَ اللهِ إِنَّ الْآخَرَ زَنَى فَأَعْرَضَ عَنْهُ رَسُولُ اللهِ ﷺ فَتَنَحَّى الرَّابِعَةَ فَلَمَّا شَهِدَ عَلَى نَفْسِهِ أَرْبَعَ شَهَادَاتٍ دَعَاهُ رَسُولُ اللهِ ﷺ فَقَالَ هَلْ بِكَ جُنُونٌ؟ فَقَالَ لَا فَقَالَ رَسُولُ اللهِ ﷺ اذْهَبُوا بِهِ فَارْجُمُوهُ وَكَانَ قَدْ أُحْصِنَ قَالَ الزُّهْرِيُّ فَأَخْبَرَنِي مَنْ سَمِعَ جَابِرَ بْنَ عَبْدِ اللهِ الْأَنْصَارِيَّ قَالَ كُنْتُ فِيمَنْ رَجَمَهُ فَرَجَمْنَاهُ بِالْمُصَلَّى بِالْمَدِينَةِ فَلَمَّا أَذْلَقَتْهُ الْحِجَارَةُ جَمَزَ حَتَّى أَدْرَكْنَاهُ بِالْحَرَّةِ فَرَجَمْنَاهُ حَتَّى مَاتَ