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.
nasai-kubra:897ʿAmr b. Manṣūr > Abū Nuʿaym > Sufyān > Yaḥyá b. Hāniʾ > ʿAbd al-Ḥamīd b. Maḥmūd

"We were with Anas and we prayed with one of the Amirs. They pushed us until we stood and prayed between two rows, and Anas started moving backward and said: 'We used to avoid this at the time of the Messenger of Allah ﷺ." (Using translation from Nasāʾī 821)  

الكبرى للنسائي:٨٩٧أَخْبَرَنَا عَمْرُو بْنُ مَنْصُورٍ قَالَ حَدَّثَنَا أَبُو نُعَيْمٍ عَنْ سُفْيَانَ عَنْ يَحْيَى بْنِ هَانِئٍ عَنْ عَبْدِ الْحَمِيدِ بْنِ مَحْمُودٍ قَالَ

كُنَّا مَعَ أَنَسٍ فَصَلَّيْنَا مَعَ أَمِيرٍ مِنَ الْأُمَرَاءِ فَدَفَعُونَا حَتَّى قُمْنَا بَيْنَ السَّارِيَتَيْنِ فَجَعَلَ أَنَسٌ يَتَأَخَّرُ وَقَالَ «قَدْ كُنَّا نَتَّقِي هَذَا عَلَى عَهْدِ رَسُولِ اللهِ ﷺ»  


See similar narrations below:

Collected by Nasāʾī
nasai:821ʿAmr b. Manṣūr > Abū Nuʿaym > Sufyān > Yaḥyá b. Hāniʾ > ʿAbd al-Ḥamīd b. Maḥmūd

"We were with Anas and we prayed with one of the Amirs. They pushed us until we stood and prayed between two rows, and Anas started moving backward and said: 'We used to avoid this at the time of the Messenger of Allah ﷺ."  

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

كُنَّا مَعَ أَنَسٍ فَصَلَّيْنَا مَعَ أَمِيرٍ مِنَ الأُمَرَاءِ فَدَفَعُونَا حَتَّى قُمْنَا وَصَلَّيْنَا بَيْنَ السَّارِيَتَيْنِ فَجَعَلَ أَنَسٌ يَتَأَخَّرُ وَقَالَ قَدْ كُنَّا نَتَّقِي هَذَا عَلَى عَهْدِ رَسُولِ اللَّهِ ﷺ