It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Cursed, cursed is the one who attributes his lineage to someone other than his father; and cursed, cursed is the one who attributes himself to someone other than his (freeing) masters."