Saad bin Abu Waqqas reported,

My ears heard the Messenger of Allah ﷺ say, "Whoever claims as his father in Islam someone other than his real father, knowing that he is not his father, paradise is forbidden to him."Abu Bakra said, "And I too heard it from the Messenger of Allah ﷺ."

Muslim 219

Sahih

حدثني عمرو الناقد حدثنا هشيم بن بشير أخبرنا خالد عن أبي عثمان قال لما ادعي زياد لقيت أبا بكرة فقلت له ما هذا الذي صنعتم إني سمعت

سعد بن أبي وقاص يقول

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

مسلم 219صحيح
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 219
Muslim 219