The Prophet ﷺ said, "People must stop boasting about their forefathers who have died, for they are nothing but fuel for Hell, or they will surely become more contemptible before Allah than the dung beetle that rolls filth with its nose. Allah has removed from you the arrogance of the Days of Ignorance and its pride in ancestors. A person is either a pious believer or a wretched sinner. All people are the children of Adam, and Adam was created from dust."
عن النبي ﷺ قال: لينتهين أقوام يفتخرون بآبائهم الذين ماتوا، إنما هم فحم جهنم أو ليكونن أهون على الله من الجعل الذي يدهده الخرء بأنفه، إن الله قد أذهب عنكم عبية الجاهلية وفخرها بالآباء إنما هو مؤمن تقي وفاجر شقي الناس كلهم بنو آدم، وآدم خلق من تراب.
Tirmidhi (3955) and Ahmad (10781) both narrated it through Abu Amir Aqadi, who said, Abdul-Malik bin Amr and Hisham bin Saad narrated to us, from Saeed bin Abu Saeed Maqburi, from Abu Hurairah, and he related it.Its chain is hasan because of Hisham bin Saad Madani, who is Abu Abbad, also called Abu Saeed Qurashi, about whom there is disagreement, though his hadith is hasan.Tirmidhi said, "This is a hasan hadith."