عن سعد بن أبي وقاص رضي الله عنه أن النبي صلى الله عليه وسلم قال:
"من ادعى إلى غير أبيه وهو يعلم أنه غير أبيه، فالجنة عليه حرام"
Sa'd bin Abu Waqqas (May Allah be pleased with him) said:
The Prophet (ﷺ) said, "He who (falsely) attributes his fatherhood to anyone besides his real father, knowing that he is not his father, will be forbidden to enter Jannah."
[Al-Bukhari and Muslim].
Reported by Al-Bukhari (No. 4326, 6766), Muslim (No. 63a), Ahmad (No. 1375, 1415, 1417, 1422, 1471, 19501, 19566) and Ad-Darimi (No. 2418). Cited in Riyad as-Salihin (No. 1802).