From Sahih Bukhari (Hadith 3490):
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: Bukhari 3490