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)
النَّبِيَّ ﷺ النَّاسُ تَبَعٌ لِقُرَيْشٍ فِيهَذَا الشَّأْنِ مُسْلِمُهُمْ تَبَعٌ لِمُسْلِمِهِمْ وَكَافِرُهُمْ تَبَعٌ لِكَافِرِهِمْ