Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:15370Abū Bakr Muḥammad b. al-Ḥasan b. Fūrak > ʿAbdullāh b. Jaʿfar > Yūnus b. Ḥabīb > Abū Dāwud > Shuʿbah > Muḥammad b. Ziyād > Abū Hurayrah ؓ

[Machine] The Prophet ﷺ said: "A child belongs to his bed, and the stone belongs to the adulteress."  

البيهقي:١٥٣٧٠أَخْبَرَنَا أَبُو بَكْرٍ مُحَمَّدُ بْنُ الْحَسَنِ بْنِ فُورَكٍ أنا عَبْدُ اللهِ بْنُ جَعْفَرٍ نا يُونُسُ بْنُ حَبِيبٍ نا أَبُو دَاوُدَ نا شُعْبَةُ عَنْ مُحَمَّدِ بْنِ زِيَادٍ سَمِعَ أَبَا هُرَيْرَةَ ؓ

سَمِعَ النَّبِيَّ ﷺ يَقُولُ الْوَلَدُ لِلْفِرَاشِ وَلِلْعَاهِرِ الْحَجَرُ  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ آدَمَ عَنْ شُعْبَةَ

See similar narrations below:

Collected by Ibn Mājah, Aḥmad
ibnmajah:2007Hishām b. ʿAmmār > Ismāʿīl b. ʿAyyāsh > Shuraḥbīl b. Muslim > Abū Umāmah al-Bāhilī

"I heard Abu Um Amah Al-Bahili say: 'I heard the Messenger of Allah say: "The child is for the bed and the fornicator gets nothing."  

ابن ماجة:٢٠٠٧حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ حَدَّثَنَا إِسْمَاعِيلُ بْنُ عَيَّاشٍ حَدَّثَنَا شُرَحْبِيلُ بْنُ مُسْلِمٍ قَالَ سَمِعْتُ أَبَا أُمَامَةَ الْبَاهِلِيَّ يَقُولُ

سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ الْوَلَدُ لِلْفِرَاشِ وَلِلْعَاهِرِ الْحَجَرُ  

ahmad:9003Bahz > Ḥammād / Ibn Salamah > Muḥammad b. Ziyād > Abū Hurayrah

the Prophet said: "The child is for the bed (i.e., belongs to the husband) and the fornicator gets nothing!' (Using translation from Ibn Mājah 2006)  

أحمد:٩٠٠٣حَدَّثَنَا بَهْزٌ حَدَّثَنَا حَمَّادٌ يَعْنِي ابْنَ سَلَمَةَ عَنْ مُحَمَّدِ بْنِ زِيَادٍ عَنْ أَبِي هُرَيْرَةَ

عَنِ النَّبِيِّ ﷺ قَالَ الْوَلَدُ لِلْفِرَاشِ وَلِلْعَاهِرِ الْحَجَرُ