Abu Hurayrah (may Allāh be pleased with him) narrated that the Prophet (sallahAllaahu alayhi wasallam) said:
“Some people must either refrain from boasting of their late ancestors- who are nothing but the charcoal of Hellfire- or they shall be lesser than a small earthworm that rolls on stool on its nose.
Allāh indeed freed you from the arrogance of [the people of] the pre-Islamic era and their boasting of their ancestors.
People are either a pious believer or a miserable disobedient.
All people are the descendants of Adam, and Adam was created from earth.”
Saheeh Targheeb wa Tarheeb: 2625 , Sheikh Al-Albaani said it is Ḥasan Ṣaḥeeḥ.