Anas bin Malik reported,

I heard the Messenger of Allah ﷺ say, "Whoever claims descent from someone other than his father, or attributes himself to people other than his true masters, upon him be the continuous curse of Allah until the Day of Resurrection."

Abu Dawud 5115

Sahih

حدثنا سليمان بن عبد الرحمن الدمشقي حدثنا عمر بن عبد الواحد عن عبد الرحمن بن يزيد بن جابر قال حدثني سعيد بن أبي سعيد ونحن ببيروت

عن أنس بن مالك قال

سمعت رسول الله ﷺ يقول من ادعى إلى غير أبيه أو انتمى إلى غير مواليه فعليه لعنة الله المتتابعة إلى يوم القيامة

أبو داود 5115صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Manners
Chapter
Man who affiliates himself with other than his patrons
Numbering
Darussalam 5115
Abu Dawud 5115