Hadith: humans rank by piety, not lineage

Hadith: humans rank by piety, not lineage
Detail from a 17th-century Mughal painting showing five men and one woman looking to the sky and holding hands with palms facing up, to make a supplication / prayer. (Walters Ms. W.650)

It is reported that the Prophet ﷺ said:

O people! God wiped away the arrogance of your foolish past, when you glorified your lineage.
There are only two kinds of humans: upright, pious people… and immoral, grim souls with no status in God’s eyes.
All are children of Adam, who God created from dust! God says, “O People, We created you all from a male and a female, and We made you into tribes and nations so that you may know one another. The most honored amongst you is the one with the deepest piety.” (49:13)

In Arabic:

عَنِ ابْنِ عُمَرَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم خَطَبَ النَّاسَ يَوْمَ فَتْحِ مَكَّةَ فَقَالَ ‏"‏ يَا أَيُّهَا النَّاسُ إِنَّ اللَّهَ قَدْ أَذْهَبَ عَنْكُمْ عُبِّيَّةَ الْجَاهِلِيَّةِ وَتَعَاظُمَهَا بِآبَائِهَا فَالنَّاسُ رَجُلاَنِ رَجُلٌ بَرٌّ تَقِيٌّ كَرِيمٌ عَلَى اللَّهِ وَفَاجِرٌ شَقِيٌّ هَيِّنٌ عَلَى اللَّهِ وَالنَّاسُ بَنُو آدَمَ وَخَلَقَ اللَّهُ آدَمَ مِنْ تُرَابٍ ‏"‏ ‏.‏ قَالَ اللَّهُ ‏:‏ ‏(‏ يا أَيُّهَا النَّاسُ إِنَّا خَلَقْنَاكُمْ مِنْ ذَكَرٍ وَأُنْثَى وَجَعَلْنَاكُمْ شُعُوبًا وَقَبَائِلَ لِتَعَارَفُوا إِنَّ أَكْرَمَكُمْ عِنْدَ اللَّهِ أَتْقَاكُمْ إِنَّ اللَّهَ عَلِيمٌ خَبِيرٌ

Notes

This report appears in al-Tirmidhi’s collection.