Abu Hurairah reported,

The Messenger of Allah ﷺ was asked, "Who is the most noble of people?"He replied, "The most God-fearing among them."They said, "That is not what we are asking you about."He said, "Then the most noble of people is Yusuf, prophet of Allah, son of a prophet of Allah, son of a prophet of Allah, son of the friend of Allah."They said, "That is not what we are asking you about."He said, "Then are you asking me about the origins of the Arabs? People are like ores. The best of them in the days of ignorance are the best of them in Islam, provided they gain understanding of the religion."

Azami 8404

Sahih

عن أبي هريرة

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

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