Language:
كتاب الحدود
86  
Limits and Punishments set by Allah (Hudood)
(23)
Chapter: The stone is for illegal sexual intercourse
(23)
باب لِلْعَاهِرِ الْحَجَرُ
Sahih al-Bukhari 6818

Narrated Abu Huraira:

The Prophet (ﷺ) said, "The boy is for (the owner of) the bed and the stone is for the person who commits illegal sexual intercourse.'

حَدَّثَنَا آدَمُ، حَدَّثَنَا شُعْبَةُ، حَدَّثَنَا مُحَمَّدُ بْنُ زِيَادٍ، قَالَ سَمِعْتُ أَبَا هُرَيْرَةَ، قَالَ النَّبِيُّ صلى الله عليه وسلم ‏ "‏ الْوَلَدُ لِلْفِرَاشِ، وَلِلْعَاهِرِ الْحَجَرُ ‏"‏‏.‏
Reference : Sahih al-Bukhari 6818
In-book reference : Book 86, Hadith 46
USC-MSA web (English) reference : Vol. 8, Book 82, Hadith 808
  (deprecated numbering scheme)