This is one of the traditions narrated by Abu Huraira from the Messenger of Allah ﷺ who said: People are subservient to the Quraish: the Muslims among them being subservient to the Muslims among them, and the disbelievers among them being subservient to the disbelievers among them. (Using translation from Muslim 1818b)
قَالَ رَسُولُ اللهِ ﷺ النَّاسُ أَتْبَاعٌ لِقُرَيْشٍ فِيهَذَا الشَّأْنِ كُفَّارُهُمْ أَتْبَاعٌ لِكُفَّارِهِمْ وَمُسْلِمُوهُمْ أَتْبَاعٌ لِمُسْلِمِيهِمْ