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)
قَالَ رَسُولُ اللهِ ﷺ إِنَّ اللهَ ﷻ قَدْ أَذْهَبَ عَنْكُمْ عُبِّيَّةَ الْجَاهِلِيَّةِ وَفَخْرَهَا بِالْآبَاءِ مُؤْمِنٌ تَقِيٌّ وَفَاجِرٌ شَقِيٌّ وَالنَّاسُ بَنُو آدَمَ وَآدَمُ مِنْ تُرَابٍ لَيَنْتَهِيَنَّ أَقْوَامٌ فَخْرَهُمْ بِرِجَالٍ أَوْ لَيَكُونُنَّ أَهْوَنَ عِنْدَ اللهِ مِنْ عِدَّتِهِمْ مِنَ الْجِعْلَانِ الَّتِي تَدْفَعُ بِأَنْفِهَا النَّتَنَ