صحيح البخاري Sahih Bukhari كتاب المحاربين The Book of Al-Maharbeen
بَابُ لِلْعَاهِرِ الْحَجَرُ:

(23) Chapter. The stone is for a person who committed illegal sexual intercourse.

2 hadith
Hadith 6817
حَدَّثَنَا أَبُو الْوَلِيدِ ، حَدَّثَنَا اللَّيْثُ ، عَنْ ابْنِ شِهَابٍ ، عَنْ عُرْوَةَ ، عَنْ عَائِشَةَ رَضِيَ اللَّهُ عَنْهَا ، قَالَتْ : " اخْتَصَمَ سَعْدٌ ، وَابْنُ زَمْعَةَ ، فَقَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " هُوَ لَكَ يَا عَبْدُ بْنَ زَمْعَةَ ، الْوَلَدُ لِلْفِرَاشِ ، وَاحْتَجِبِي مِنْهُ يَا سَوْدَةُ " ، زَادَ لَنَا قُتَيْبَةُ ، عَنْ اللَّيْثِ : " وَلِلْعَاهِرِ الْحَجَرُ " .
Narrated `Aisha: Sa`d bin Abi Waqqas and `Abd bin Zam`a quarrelled with each other (regarding a child). The Prophet said, "The boy is for you, O `Abd bin Zam`a, for the boy is for (the owner) of the bed. O Sauda ! Screen yourself from the boy." The sub-narrator, Al-Laith added (that the Prophet also said), "And the stone is for the person who commits an illegal sexual intercourse."
Hadith Reference Sahih Bukhari / The Book of Al-Maharbeen / Hadith: 6817
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 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.'
Hadith Reference Sahih Bukhari / The Book of Al-Maharbeen / Hadith: 6818
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة