Sunan Ibn Majah – Hadith No : 2850

It wasnarrated from ‘Amr bin Shu’aib, from his father, from hisgrandfather that the Messenger of Allah (ﷺ) said: “Whoevercommitsadultery with a slave woman or a free woman, his child isillegitimate, and he cannot inherit from him or be inherited from(i.e., this child cannot inherit from him).”

Hadith In Arabic Text :

حدثنا أبو كريب، حدثنا يحيى بن اليمان، عن المثنى بن الصباح، عن عمرو بن شعيب، عن أبيه، عن جده، قال قال رسول الله صلى الله عليه وسلم ‏”‏ من عاهر أمة أو حرة فولده ولد زنا لا يرث ولا يورث ‏”‏ ‏.‏

Chapter : Chapters on Shares of Inheritance – كتاب الفرائض