Riyad as-Salihin #1802 · The Book of the Prohibited actions

Riyad as-SalihinSa'd bin Abi Waqqas
Riyad as-Salihin · Book 18 · The Book of the Prohibited actions
Riyad as-Salihin · كتاب 18 · كتاب الأمور المنهي عنها
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] .
عن سعد بن أبي وقاص رضي الله عنه أن النبي صلى الله عليه وسلم قال:
"من ادعى إلى غير أبيه وهو يعلم أنه غير أبيه، فالجنة عليه حرام" ((متفق عليه)).
Reference : Riyad as-Salihin 1802In-book reference : Book 18, Hadith 292