Sunan Abi Dawud 5115
سنن أبي داود#5115SahihAnas 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
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Al-AlbaniSahih
Muhammad Muhyi Al-Din Abdul HamidSahih
Zubair Ali ZaiSahih
In-book reference: 43:343