(29) باب مَنِ ادَّعَى إِلَى غَيْرِ أَبِيهِ
Narrated Sa`d:
I heard the Prophet (ﷺ) saying, "Whoever claims to be the son of a person other than his father, and he knows that person is not his father, then Paradise will be forbidden for him." I mentioned that to Abu Bakra, and he said, "My ears heard that and my heart memorized it from Allah's Messenger (ﷺ).
Reference: Sahih al-Bukhari 6766, 6767
In-book reference: Book 85, Hadith 43
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 80, Hadith 758