´It was narrated from 'Umar that:` the Messenger of Allah ruled that the child belonged to the bed.
Hadith Referenceسنن ابن ماجه / كتاب النكاح / 2005
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:صحيح
Hadith Takhrij« تفرد بہ ابن ماجہ ، ( تحفة الأشراف : 10672 ) ، وقد أخرجہ : مسند احمد ( 1/25 ) ( صحیح ) »
Brief Explanation
1؎ : By «فراش» is meant the possessor of the bed, i.e., the husband or the master, because it is these two who lay the woman on the bed and sleep with her. «وللعاهرالحجر» means that for the adulterer there is disappointment and deprivation; he has no right in the child. And there is also another opinion that by «حجر» (stone) it is meant that he will be stoned, but this opinion is weak and feeble because stoning is only for a married adulterer. The meaning of the hadith is that when a woman gives birth to a child, the child will be attributed to the one whose wife or slave-girl she is, and the child will be counted as his. The rulings of inheritance and other rulings related to birth will apply between them, even if someone else claims to have committed adultery with that woman and claims that the child was born from his adultery, and even if the child resembles him and does not resemble the possessor of the bed. Despite all this, the child will be attributed to the possessor of the bed, and the adulterer will have no right in it. And this is in the case where the possessor of the bed does not deny the child; but if he denies it, then the child will be attributed to the mother, and the child will be ascribed to the mother, not to the adulterer.
Explanation & Benefits
Maulana Ataullah Sajid
Benefit: By "the one who owns the bed" is meant a woman's husband or the owner of a female slave. The child will be counted as belonging to him, and matters such as inheritance, etc., will also be connected to him, not to the man with whom the illegitimate relationship resulted in the child's birth.
Source: Commentary on Sunan Ibn Mājah by Mawlānā ‘Atā’ullāh Sājid, Page: 2005