Jami` at-Tirmidhi, Book 49, Hadith 88 (Tirmidhi 3785)

Narrated Ibn 'Umar:

that the Messenger of Allah (ﷺ) said: "I am the first for whom the earth will split, then Abu Bakr, then 'Umar. Then the people of Al-Baqi; they will be gathered with me. Then I will await the people of Makkah until they are resurrected between the Two Sacred areas."