Sunan Ibn Majah 2006
It was narrated from Abu Hurairah that:
the Prophet ﷺ said: "The child is for the bed (i.e., belongs to the husband) and the fornicator gets nothing!'
حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ، حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنِ الزُّهْرِيِّ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ النَّبِيَّ ـ ﷺ ـ قَالَ " الْوَلَدُ لِلْفِرَاشِ . وَلِلْعَاهِرِ الْحَجَرُ " .
Classification
Sahih (Authentic) [Darussalam]
References
Sunan Ibn Majah 2006
Sunan Ibn Majah Vol. 3, Book of Marriage, Hadith 2006