← Sahih al-Bukhari
Sahih al-Bukhari · Hadith #6571 · Limits and Punishments set by Allah (Hudood)

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.'