سُنَنُ ابْنِ مَاجَهْ
Sunan Ibn Majah 2005
The Chapters on Marriage
The child is for the bed and the fornicator gets nothing
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنْ عُبَيْدِ اللَّهِ بْنِ أَبِي يَزِيدَ، عَنْ أَبِيهِ، عَنْ عُمَرَ، أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ قَضَى بِالْوَلَدِ لِلْفِرَاشِ .
It was narrated from 'Umar that: the Messenger of Allah ruled that the child belonged to the bed.
Sunan Ibn Majah, 2005Sahih (Darussalam)