the Messenger of Allah ruled that the child belonged to the bed.

Sunan Ibn Majah Book 9 Hadith 2083

Sunan Ibn Majah

The Chapters on Marriage 9:2083

It was narrated from 'Umar that:

the Messenger of Allah ruled that the child belonged to the bed.

Grade: Sahih (Darussalam)