Sunan Abi Dawud 5115
Grading supplied with this record: Sahih (Al-Albani)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنِ ادَّعَى إِلَى غَيْرِ أَبِيهِ أَوِ انْتَمَى إِلَى غَيْرِ مَوَالِيهِ فَعَلَيْهِ لَعْنَةُ اللَّهِ الْمُتَتَابِعَةُ إِلَى يَوْمِ الْقِيَامَةِ "
Anas b. Malik reported the Messenger of Allah (ﷺ) 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.
Full reference and source
Sunan Abi Dawud 5115 In-book : Book 43, Hadith 343 English translation : Book 42, Hadith 5096
View source on Sunnah.com (opens in a new tab)