Sahih al-Bukhari, Book 93, Hadith 4 (Bukhari 6871)

Narrated Ibn `Umar:

Allah's Messenger (ﷺ) said, "This matter (caliphate) will remain with the Quraish even if only two of them were still existing."