Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:5971a

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)   

السيوطي:٥٩٧١a

"إِنَّ الناسَ يصيرون يومَ القيامة جُثَاةً ، كلُّ أُمةِ تتبَعُ نبيَّها، يقولونَ: يا فلانُ اشفعْ، يا فلانُ اشْفَعْ، حتَّى تَنْتَهِىَ الشفاعةُ إِلى محمدٍ، فذلك يومَ يبعثُهُ الله المقامَ المحمودَ".  

[خ] البخاري عن ابن عمر

See similar narrations below:

Collected by Bukhārī, Nasāʾī's Kubrá
bukhari:4718Ismāʿīl b. Abān > Abū al-Aḥwaṣ > Ādam b. ʿAlī > 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).  

البخاري:٤٧١٨حَدَّثَنِي إِسْمَاعِيلُ بْنُ أَبَانَ حَدَّثَنَا أَبُو الأَحْوَصِ عَنْ آدَمَ بْنِ عَلِيٍّ قَالَ سَمِعْتُ ابْنَ عُمَرَ ؓ يَقُولُ

إِنَّ النَّاسَ يَصِيرُونَ يَوْمَ الْقِيَامَةِ جُثًا كُلُّ أُمَّةٍ تَتْبَعُ نَبِيَّهَا يَقُولُونَ يَا فُلاَنُ اشْفَعْ حَتَّى تَنْتَهِيَ الشَّفَاعَةُ إِلَى النَّبِيِّ ﷺ فَذَلِكَ يَوْمَ يَبْعَثُهُ اللَّهُ الْمَقَامَ الْمَحْمُودَ  

nasai-kubra:11231al-ʿAbbās b. ʿAbdullāh b. al-ʿAbbās > Saʿīd b. Manṣūr al-Makkī > Abū al-Aḥwaṣ > Ādam b. ʿAlī > 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). (Using translation from Bukhārī 4718)   

الكبرى للنسائي:١١٢٣١أَخْبَرَنَا الْعَبَّاسُ بْنُ عَبْدِ اللهِ بْنِ الْعَبَّاسِ قَالَ حَدَّثَنَا سَعِيدُ بْنُ مَنْصُورٍ الْمَكِّيُّ حَدَّثَنَا أَبُو الْأَحْوَصِ عَنْ آدَمَ بْنِ عَلِيٍّ قَالَ سَمِعْتُ ابْنَ عُمَرَ يَقُولُ

سَمِعْتُ النَّبِيَّ ﷺ يَقُولُ إِنَّ النَّاسَ يَصِيرُونَ يَوْمَ الْقِيَامَةِ جُثًا كُلُّ أُمَّةٍ تَتْبَعُ نَبِيَّهَا يَقُولُونَ أَيْ فُلَانُ اشْفَعْ لَنَا «حَتَّى تَنْتَهِيَ الشَّفَاعَةُ إِلَى رَسُولِ اللهِ ﷺ فَذَلِكَ يَوْمُ يَبْعَثُهُ اللهُ تَبَارَكَ وَتَعَالَى الْمَقَامَ الْمَحْمُودَ»