كتاب الأمور المنهي عنها
17  
The Book of the Prohibited actions
(367)
Chapter: Prohibition of attributing wrong Fatherhood
(367)
- باب تحريم انتساب الإنسان إلى غير أبيه وتوليه إلى غير مواليه
Riyad as-Salihin 1802
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].
عن سعد بن أبي وقاص رضي الله عنه أن النبي صلى الله عليه وسلم قال‏:‏ ‏ "‏من ادعى إلى غير أبيه وهو يعلم أنه غير أبيه، فالجنة عليه حرام‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 1802
In-book reference : Book 17, Hadith 292