He reported that the Messenger of Allah ﷺ said, "There is no musaaah in Islam. Whoever engaged in musaaah during the Days of Ignorance is now joined to his paternal kin, and whoever claims a child born outside legitimate marriage, that child shall neither inherit nor be inherited from."
حدثنا يعقوب بن إبراهيم حدثنا معتمر عن سلم يعني ابن أبي الزياد حدثني بعض أصحابنا عن سعيد بن جبير
أنه قال قال رسول الله ﷺ لا مساعاة في الإسلام من ساعى في الجاهلية فقد لحق بعصبته ومن ادعى ولدا من غير رشدة فلا يرث ولا يورث
[Its chain of transmission is daif] Ahmad narrated it: 1/362, from the hadith of Mutamir, through this route. * Some of our companions, I did not identify him.