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). (Using translation from Bukhārī 4718)
"إِنَّ الناسَ يصيرون يومَ القيامة جُثَاةً ، كلُّ أُمةِ تتبَعُ نبيَّها، يقولونَ: يا فلانُ اشفعْ، يا فلانُ اشْفَعْ، حتَّى تَنْتَهِىَ الشفاعةُ إِلى محمدٍ، فذلك يومَ يبعثُهُ الله المقامَ المحمودَ".