Sahih al-Bukhari 6818
Sahih al-Bukhari · Book 86: Limits and Punishments set by Allah (Hudood) · The stone is for illegal sexual intercourse
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.'