Hadith 2005

It was narrated from 'Umar that: the Messenger of Allah ruled that the child belonged to the bed.

حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنْ عُبَيْدِ اللَّهِ بْنِ أَبِي يَزِيدَ، عَنْ أَبِيهِ، عَنْ عُمَرَ، أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ قَضَى بِالْوَلَدِ لِلْفِرَاشِ ‏.‏

Reference: 1320840
In-book reference: Book 9, Hadith 2005
Hadith 2005 - The Chapters Regarding Zakat - Sunan Ibn Majah - Sunnah.com