Imam Shafi’i (may Allah have mercy on him) forgot a chain of narration; from the wording of the hadith, what he remembered is this: The Messenger of Allah (ﷺ) said: “The righteous people of Quraysh are the best of all people, and the wicked people of Quraysh are better than all other wicked people.”
Hadith Referenceالسنن المأثورة / باب عمارة الأرضين / 426