Sahih al-Bukhari, Book 86, Hadith 47 (In-Book) ⓘ
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.'
حَدَّثَنَا آدَمُ، حَدَّثَنَا شُعْبَةُ، حَدَّثَنَا مُحَمَّدُ بْنُ زِيَادٍ، قَالَ سَمِعْتُ أَبَا هُرَيْرَةَ، قَالَ النَّبِيُّ صلى الله عليه وسلم " الْوَلَدُ لِلْفِرَاشِ، وَلِلْعَاهِرِ الْحَجَرُ " .
also referenced under: Hadith 6818 (DarusSalam) & Volume 8, Book 82, Hadith 808 (USC-MSA)