Read the Arabic text and available English translation from Riyad as-Salihin, with its supplied source reference.
Sunnah.com : Book 18, Hadith 292
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
من ادعى إلى غير أبيه وهو يعلم أنه غير أبيه، فالجنة عليه حرام"
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].
Full reference and source
Sunnah.com : Book 18, Hadith 292
Arabic/English book : Book 18, Hadith 1802
References, translations and numbering differ between editions. A URL number is an internal app record identifier, not universal hadith numbering. Only supplied grading is displayed; no new authenticity assessment is made.