Translation
(61) Virtues and Merits of the Prophet (pbuh) and his Companions
كتاب المناقب
(2) Chapter: Virtues of Quraish
(2) باب مَنَاقِبِ قُرَيْشٍ
Sahih al-Bukhari 3501 

Narrated Ibn `Umar:

The Prophet (ﷺ) said, "Authority of ruling will remain with Quraish, even if only two of them remained."

حَدَّثَنَا أَبُو الْوَلِيدِ، حَدَّثَنَا عَاصِمُ بْنُ مُحَمَّدٍ، قَالَ سَمِعْتُ أَبِي، عَنِ ابْنِ عُمَرَ ـ رضى الله عنهما ـ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ لا يَزَالُ هَذَا الأَمْرُ فِي قُرَيْشٍ، مَا بَقِيَ مِنْهُمُ اثْنَانِ ‏"‏‏.‏
Reference : Sahih al-Bukhari 3501
In-book reference : Book 61, Hadith 11
USC-MSA web (English) reference : Vol. 4, Book 56, Hadith 705
  (deprecated numbering scheme)