Sahih al-Bukhari, Volume 8, Book 82, Hadith 808 (USC-MSA) ⓘ
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: Book 86, Hadith 47 (In-Book) & Hadith 6818 (DarusSalam)