Abu Masud Uqba bin Amr reported,

The Messenger of Allah ﷺ used to straighten our shoulders in the prayer, saying, "Stand evenly and do not differ, for then your hearts will differ. Let those of maturity and understanding stand directly behind me, then those next to them, then those next to them."Abu Masud said, "And you today differ even more severely."

Azami 2328

Sahih

عن أبي مسعود قال

كان رسول الله ﷺ يمسح مناكبنا في الصلاة ويقول: استووا ولا تختلفوا، فتختلف قلوبكم، ليليني منكم أولو الأحلام والنهى، ثم الذين يلونهم ثم الذين يلونهم قال أبو مسعود: فأنتم اليوم أشد اختلافا.

الأعظمي 2328صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Leadership
Section
Straightening the rows
Numbering
Jami al-Kamil 2328 (2nd edition)
Azami 2328