Language:
كتاب الطلاق
68  
Divorce
(11)
Chapter: A divorce given in a state of anger, under compulsion or under the effect of intoxicants or insanity
(11)
باب الطَّلاَقِ فِي الإِغْلاَقِ
Sahih al-Bukhari 5270

Narrated Jabir:

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

حَدَّثَنَا أَصْبَغُ، أَخْبَرَنَا ابْنُ وَهْبٍ، عَنْ يُونُسَ، عَنِ ابْنِ شِهَابٍ، قَالَ أَخْبَرَنِي أَبُو سَلَمَةَ، عَنْ جَابِرٍ، أَنَّ رَجُلاً، مِنْ أَسْلَمَ أَتَى النَّبِيَّ صلى الله عليه وسلم وَهْوَ فِي الْمَسْجِدِ فَقَالَ إِنَّهُ قَدْ زَنَى‏.‏ فَأَعْرَضَ عَنْهُ، فَتَنَحَّى لِشِقِّهِ الَّذِي أَعْرَضَ فَشَهِدَ عَلَى نَفْسِهِ أَرْبَعَ شَهَادَاتٍ، فَدَعَاهُ فَقَالَ ‏ "‏ هَلْ بِكَ جُنُونٌ هَلْ أُحْصِنْتَ ‏"‏‏.‏ قَالَ نَعَمْ‏.‏ فَأَمَرَ بِهِ أَنْ يُرْجَمَ بِالْمُصَلَّى، فَلَمَّا أَذْلَقَتْهُ الْحِجَارَةُ جَمَزَ حَتَّى أُدْرِكَ بِالْحَرَّةِ فَقُتِلَ‏.‏
Reference : Sahih al-Bukhari 5270
In-book reference : Book 68, Hadith 20
USC-MSA web (English) reference : Vol. 7, Book 63, Hadith 195
  (deprecated numbering scheme)