The Prophet ﷺ said, "People must stop boasting about their forefathers who have died, for they are nothing but fuel for Hellfire, or else they will 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 boasting about ancestors. A person is either a believer who fears Allah or a wretched sinner. All people are the children of Adam, and Adam was created from dust."
حدثنا محمد بن بشار حدثنا أبو عامر العقدي حدثنا هشام بن سعد عن سعيد بن أبي سعيد المقبري
عن النبي ﷺ قال لينتهين أقوام يفتخرون بآبائهم الذين ماتوا إنما هم فحم جهنم أو ليكونن أهون على الله من الجعل الذي يدهده الخراء بأنفه إن الله قد أذهب عنكم عبية الجاهلية وفخرها بالآباء إنما هو مؤمن تقي وفاجر شقي الناس كلهم بنو آدم وآدم خلق من تراب
[Hasan]. Ahmad (2/523) also reported it from Abu Amir through him. See the following hadith. And on this topic there is also a narration from Ibn Umar [previously mentioned: 3270] and Ibn Abbas [previously mentioned under hadith: 3270].