The Prophet ﷺ said: Allah, Most High, has removed from you the pride of the pre-Islamic period and its boasting in ancestors. One is only a pious believer or a miserable sinner. You are sons of Adam, and Adam came from dust. Let the people cease to boast about their ancestors. They are merely fuel in Jahannam; or they will certainly be of less account with Allah than the beetle which rolls dung with its nose. (Using translation from Abū Dāʾūd 5116)
أَنَّ النَّبِيَّ ﷺ قَالَ لَيَدَعَنَّ رِجَالٌ فَخْرَهُمْ بِأَقْوَامٍ إِنَّمَا هُمْ فَحْمٌ مِنْ فَحْمِ جَهَنَّمَ أَوْ لَيَكُونُنَّ أَهْوَنَ عَلَى اللهِ مِنَ الْجِعْلَانِ الَّتِي تَدْفَعُ بِأَنْفِهَا النَّتِنَ وَقَالَ إِنَّ اللهَ ﷻ قَدْ أَذْهَبَ عَنْكُمْ عُبِّيَّةَ الْجَاهِلِيَّةِ وَفَخْرَهَا بِالْآبَاءِ مُؤْمِنٌ تَقِيٌّ وَفَاجِرٌ شَقِيٌّ النَّاسُ بَنُو آدَمَ وَآدَمُ مِنْ تُرَابٍ