Sunan Ibn Majah · Hadith 2850
Chapters on Shares of Inheritance - كتاب الفرائض
حدثنا أبو كريب، حدثنا يحيى بن اليمان، عن المثنى بن الصباح، عن عمرو بن شعيب، عن أبيه، عن جده، قال قال رسول الله صلى الله عليه وسلم " من عاهر أمة أو حرة فولده ولد زنا لا يرث ولا يورث " .
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).”
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).