Sunan Ibn Majah

Hadith #2005

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