If anyone pretends to be the son of a man other than his father, or attributes his freedom…

Sunan Abu Dawud Book 43 Hadith 343

Sunan Abu Dawud #5115

General Behavior (Kitab Al-Adab) 43:343

Anas b. Malik reported the Messenger of Allah (May peace be upon him) as saying:

If anyone pretends to be the son of a man other than his father, or attributes his freedom to people other than those who set him free, on him will be the curse of Allah that will continue till the day of resurrection.

Chapter: When a man claims to belong to someone other than his master

Grade: Sahih (Al-Albani)