Abu Hurairah reported,

The Prophet ﷺ was asked, "Who is the noblest of people?"He replied, "The noblest of them is the most God-fearing."They said, "Prophet of Allah, this is not what we are asking about."He said, "Then the noblest of people is Yusuf, prophet of Allah, son of the prophet of Allah, son of the prophet of Allah, son of the friend of Allah."They said, "This is not what we are asking about either."He asked, "Are you asking me about the lineages of the Arabs?"They said, "Yes."He said, "The best of you in the age of ignorance are the best of you in Islam, provided they gain understanding of the religion."

Azami 8367

Sahih

عن أبي هريرة قال

قيل للنبي ﷺ: من أكرم الناس؟ قال: أكرمهم أتقاهم قالوا: يا نبي الله ليس عن هذا نسألك قال: فأكرم الناس يوسف نبي الله ابن نبي الله ابن نبي الله ابن خليل الله قالوا: ليس عن هذا نسألك قال: فعن معادن العرب تسألوني؟ قالوا: نعم قال: فخياركم في الجاهلية خياركم في الإسلام إذا فقهوا.

الأعظمي 8367صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Stories of the prophets
Chapter
Ibrahim and his sons, peace be upon them
Section
Ibrahim عليه السلام is the Khalil of Allah
Numbering
Jami al-Kamil 8367 (2nd edition)
Azami 8367