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