I heard the Prophet ﷺ say, "Whoever claims to belong to someone other than his real father, knowing he is not his father, Paradise is forbidden to him."
حدثنا مسدد حدثنا خالد هو ابن عبد الله حدثنا خالد عن أبي عثمان
سمعت النبي ﷺ يقول من ادعى إلى غير أبيه وهو يعلم أنه غير أبيه فالجنة عليه حرام