Narrated Ibn `Umar:
On the Day of Resurrection the people will fall on their knees and every nation will follow their prophet and they will say, "O so-and-so! Intercede (for us with Allah), "till (the right) intercession is given to the Prophet (Muhammad) and that will be the day when Allah will raise him into a station of praise and glory (i.e. Al-Maqam -al-Mahmud).
USC-MSA web (English) reference: Vol. 6, Book 60, Hadith 242
Arabic reference: Book 65, Hadith 4718