Sahih al-Bukhari 3383
Ubaid bin Isma'il told me. He narrated from Abu Usamah, Abu Usamah from Ubaidullah (Umari), that he said: Sa'id bin Abi Sa'id told me. He narrated from Hazrat Abu Hurairah (ra) that the Messenger of Allah (saw) was asked who is the noblest among people. He (saw) said: “The one among them who adopted the fear of Allah (Taqwa) the most.” The people said: We are not asking you about this. He (saw) said: “Then the noblest of people is Joseph, who is the Prophet (saw) of Allah, the son of a Prophet of Allah, the grandson of a Prophet of Allah and the great-grandson of the Friend of Allah (the Beloved of God).” They said: We are not asking you about this either. He (saw) said: “Then are you asking me about the families of the Arabs? People too are mines. Those of them who were good in the Jahiliyyah are good in Islam as well, provided they learn and understand the religion.” Muhammad bin Salam (Baikandi) narrated to me that Abdah told me. He narrated from Ubaidullah, he from Sa'id (Maqburi), Sa'id from Hazrat Abu Hurairah (ra), he from the Prophet (saw) the same narration.
AI-translated by Islam-Today
Book 19: The Statement of Allah Taa'la: "Verily, in Yusuf and his brethren there were Ayat..."