Sunan Ibn Majah, Book 20, Hadith 77 (Ibn Majah 2611)

It was narrated from Ibn Abbas that the Messenger of Allah (ﷺ) said:

“Whoever claims to belong to someone other than his father, or (a freed slave) who claims that his Wala is for other than his real master, the curse of Allah (SWT), the angels and all the people will be upon him.”