Hadith 2565
Sayyiduna Amr bin Kharijah (may Allah be pleased with him) said: I was near the camel of the Messenger of Allah (peace and blessings be upon him), and I heard him say: "Whoever, out of dislike, claims to be the son of anyone other than his father, or claims to be the slave of anyone other than his master, then upon him is the curse of Allah, the angels, and all people. Neither his voluntary deeds nor his obligatory deeds will be accepted."
Hadith 2566
Sayyiduna Sa’d and Sayyiduna Abu Bakrah (may Allah be pleased with them) narrated that the Messenger of Allah (peace and blessings be upon him) said: “Whoever claims lineage to anyone other than his father, Paradise is forbidden for him.” (That is, whoever attributes himself to someone other than his father will not enter Paradise.)