Saad bin Abu Waqqas reported,

My two ears heard the Messenger of Allah ﷺ say, "Whoever claims a father in Islam other than his real father, knowing that he is not his father, paradise is forbidden to him."

Azami 202

Sahih

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

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

الأعظمي 202صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Qualities of faith
Section
Clarification of the state of faith of one who disowns his father knowingly
Numbering
Jami al-Kamil 202 (2nd edition)
Azami 202