(1) بَابُ قَوْلُ اللَّهِ تَعَالَى: {يَا أَيُّهَا النَّاسُ إِنَّا خَلَقْنَاكُمْ مِنْ ذَكَرٍ وَأُنْثَى وَجَعَلْنَاكُمْ شُعُوبًا وَقَبَائِلَ لِتَعَارَفُوا إِنَّ أَكْرَمَكُمْ عِنْدَ اللَّهِ أَتْقَاكُمْ}
Narrated Abu Huraira:
Once Allah's Messenger (ﷺ) was asked, "Who is the most honorable amongst the people?" He said, "The most righteous (i.e. Allah-fearing) amongst you." They said, "We do not ask you about this." He said, "Then Joseph, the prophet of Allah."
Reference: Sahih al-Bukhari 3490
In-book reference: Book 61, Hadith 2
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 4, Book 56, Hadith 696