We were with Anas, and we prayed behind one of the governors. The people pushed us forward until we ended up standing and praying between the two pillars. Anas began to move backward and said, "We used to avoid this during the time of the Messenger of Allah ﷺ."
أخبرنا عمرو بن منصور قال حدثنا أبو نعيم عن سفيان عن يحيى بن هانئ
كنا مع أنس فصلينا مع أمير من الأمراء فدفعونا حتى قمنا وصلينا بين الساريتين فجعل أنس يتأخر وقال قد كنا نتقي هذا على عهد رسول الله ﷺ
No references are available.
[Its chain of transmission is sahih] Abu Dawud narrated it in the Book of Prayer, chapter on the rows between the pillars, hadith no. 673, from the hadith of Sufyan Thawri, with the same wording, and he explicitly stated that he heard it directly, as recorded by Bayhaqi 3/104 and others. Tirmidhi said, regarding hadith no. 229, "hasan sahih." Hakim declared it sahih in 1/210, 218, and Dhahabi agreed with him. The hadith is also found in Sunan al-Kubra, no. 895.