It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When the Day of Resurrection comes, Allah Almighty will order a caller, and he will call out: 'Indeed, I set a lineage and you set a lineage. I made the most honourable of you the most God-fearing of you, but you refused everything except that you kept saying: "So-and-so son of so-and-so is better than so-and-so son of so-and-so." So today I raise My (appointed) lineage and lower your (self-made) lineage. Where are those who were God-fearing?'"
Hadith Referenceالمعجم الأوسط / باب العين / 4511
Hadith Takhrij«أخرجه الحاكم فى «المستدرك» برقم: 3747، 3746، وابن حجر فى «المطالب العالية» برقم: 2675، والطبراني فى «الصغير» برقم: 642»