´It was narrated from ‘Amr bin Shu’aib, from his father, from his grandfather that the Messenger of Allah (ﷺ) said:` “Whoever commits adultery with a slave woman or a free woman, his child is illegitimate, and he cannot inherit from him or be inherited from (i.e., this child cannot inherit from him).”
Hadith Referenceسنن ابن ماجه / كتاب الفرائض / 2745
Hadith Gradingالألبانی:حسن | زبیر علی زئی:حسن
Hadith Takhrij«تفرد بہ ابن ماجہ ، ( تحفة الأشراف : 8778 ) ، وقد أخرجہ : سنن الترمذی/الفرائض 21 ( 2113 ) ( حسن ) » ( سند میں مثنی بن الصباح ضعیف راوی ہیں ، لیکن شاہد سے تقو یت پاکر یہ حسن ہے )
Benefits and Issues: ➊ In matters such as inheritance, only that lineage is considered valid in Islamic law which is based on the legal relationship of marriage (nikah). A child born as a result of adultery (zina), although in reality is the son of the adulterer, this relationship is not legally recognized; nor can this person inherit from the adulterer in the event of his death.
➋ In establishing the maternal relationship, it makes no difference whether the relationship was lawful or unlawful; therefore, the inheritance relationship is established between an illegitimate child and his mother. Similarly, the inheritance relationship with maternal relatives also remains established.
Source: Commentary on Sunan Ibn Mājah by Mawlānā ‘Atā’ullāh Sājid, Page: 2745
´Amr bin Shu'aib narrated from his father, from his grandfather, that the Messenger of Allah(S.A.W) said:` "Any man who fornicates with a free woman, or a slave woman, then the child born from Zina does not inherit, nor is it inherited from."
Shaykh Dr. Abdur Rahman Freywai
Commentary: Note: (In the chain of narration, Abdullah bin Lahi'ah is a weak narrator, but on the basis of corroborating evidences, this hadith is hasan sahih.)
Source: Sunan al-Tirmidhi – Majlis ‘Ilmi Dar al-Da‘wah, New Delhi Edition, Page: 2113