It was narrated that Abu Uthman Nahdi said:
"I heard Sa'd and Abu Bakrah both say that they heard directly from Muhammad (ﷺ) saying it and memorized: 'Whoever claims to belong to someone other than his father knowing the he is not his father, Paradise will be forbidden to him." (ES)
English reference (ES): Vol. 3, Book 20, Hadith 2610 (ES)
Arabic reference (ES): Book 20, Hadith 2708 (ES)