A man from the tribe of Bani Aslam came to the Prophet ﷺ while he was in the mosque and said, "I have committed illegal sexual intercourse." The Prophet ﷺ turned his face to the other side. The man turned towards the side towards which the Prophet ﷺ had turned his face, and gave four witnesses against himself. On that the Prophet ﷺ called him and said, "Are you insane?" (He added), "Are you married?" The man said, 'Yes." On that the Prophet ﷺ ordered him to be stoned to the death in the Musalla (a praying place). When the stones hit him with their sharp edges and he fled, but he was caught at Al- Harra and then killed (Using translation from Bukhārī 5270)
أَنَّ رَجُلًا مِنْ أَسْلَمَ أَتَى رَسُولَ اللهِ ﷺ وَهُوَ فِي الْمَسْجِدِ فَنَادَاهُ فَحَدَّثَهُ أَنَّهُ زَنَا فَأَعْرَضَ عَنْهُ رَسُولُ اللهِ ﷺ فَتَنَحَّى بِشِقِّهِ الَّذِي أَعْرَضَ قِبَلَهُ فَأَخْبَرَهُ أَنَّهُ زَنَا فَشَهِدَ عَلَى نَفْسِهِ أَرْبَعَ مَرَّاتٍ فَدَعَاهُ رَسُولُ اللهِ ﷺ فَقَالَ «هَلْ بِكَ جُنُونٌ؟» قَالَ لَا قَالَ فَهَلْ أُحْصِنْتَ؟ قَالَ نَعَمْ فَأَمَرَ بِهِ رَسُولُ اللهِ ﷺ أَنْ يُرْجَمَ بِالْمُصَلَّى فَلَمَّا أَذْلَقَتْهُ الْحِجَارَةُ جَمَزَ حَتَّى أُدْرِكَ بِالْحَرَّةِ فَقُتِلَ بِهَا رَجْمًا