كتاب الإمارة
33
The Book on Government
(1)
Chapter: The people follow the Quraish and the Caliphate belongs to the Quraish
(1)
باب النَّاسُ تَبَعٌ لِقُرَيْشٍ وَالْخِلاَفَةُ فِي قُرَيْشٍ ‏‏

It has been narrated on the authority of Jabir b. Samura who said:

I heard the Messenger of Allah (ﷺ) say: Islam will continue to be triumphant until there have been twelve Caliphs. Then the Prophet (ﷺ) said something which I could not understand. I asked my father: What did he say? He said: He has said that all of them (twelve Caliphs) will be from the Quraish.
حَدَّثَنَا هَدَّابُ بْنُ خَالِدٍ الأَزْدِيُّ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ سِمَاكِ بْنِ حَرْبٍ، قَالَ سَمِعْتُ جَابِرَ بْنَ سَمُرَةَ، يَقُولُ سَمِعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ ‏"‏ لاَ يَزَالُ الإِسْلاَمُ عَزِيزًا إِلَى اثْنَىْ عَشَرَ خَلِيفَةً ‏"‏ ‏.‏ ثُمَّ قَالَ كَلِمَةً لَمْ أَفْهَمْهَا فَقُلْتُ لأَبِي مَا قَالَ فَقَالَ ‏"‏ كُلُّهُمْ مِنْ قُرَيْشٍ ‏"‏ ‏.‏
Reference : Sahih Muslim 1821 d
In-book reference : Book 33, Hadith 8
USC-MSA web (English) reference : Book 20, Hadith 4480
  (deprecated numbering scheme)