Abdullah bin Abbas reported,

The Messenger of Allah ﷺ said, "Any man who claims descent from someone other than his real father, or attaches himself as a freed slave to people other than those who actually freed him, brings upon himself the curse of Allah, the angels, and all of humanity until the Day of Resurrection. No obligatory deed nor voluntary deed will be accepted from him."

Ahmad 2921

Sahih

حدثنا أبو النضر حدثنا عبد الحميد حدثنا شهر قال

قال ابن عباس

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

أحمد 2921صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Abbas bin Abdul-Muttalib
Numbering
Darussalam 2921
Ahmad 2921