The Prophet (ﷺ) said, "Do not deny your fathers (i.e. claim to be the sons of persons…

Sahih al-Bukhari Book 85 Hadith 44

Sahih al-Bukhari #6768

Laws of Inheritance (Al-Faraa'id) 85:44

Narrated Abu Huraira:

The Prophet (ﷺ) said, "Do not deny your fathers (i.e. claim to be the sons of persons other than your fathers), and whoever denies his father, is charged with disbelief."

Chapter: Whoever claims to be the son of a person other than his father

Grade: Sahih