Saad bin Abu Waqqas and Abu Bakra reported,

"My ears heard it and my heart retained it, that Muhammad ﷺ said, 'Whoever claims descent from someone other than his father, knowing that he is not his father, Paradise is forbidden to him.'"

Muslim 220

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا يحيى بن زكرياء بن أبي زائدة وأبو معاوية عن عاصم عن أبي عثمان

عن سعد وأبي بكرة كلاهما يقول

ا سمعته أذناي ووعاه قلبي محمدا ﷺ يقول من ادعى إلى غير أبيه وهو يعلم أنه غير أبيه فالجنة عليه حرام

مسلم 220صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Faith
Chapter
Clarification of the state of faith of one who disowns his father knowingly
Numbering
Darussalam 220
Muslim 220