Hadith 17:809
Affan narrated to us, he said: Wuhayb narrated to us, from Abdullah ibn Uthman, from Sa’id ibn Jubayr, from Ibn Abbas, from the Prophet, peace be upon him, he said: "Whoever claims to be the son of someone other than his father, or allies himself with someone other than his own masters, then upon him is the curse of Allah, the angels, and all of mankind."
حدثنا عفان قال حدثنا وهيب عن عبد الله بن عثمان عن سعيد بن جبير عن بن عباس عن النبي عليه السلام قال من ادعى إلى غير أبيه وتولى غير مواليه فعليه لعنة الله والملائكة والناس اجمعين