Abu Masud Uqba bin Amr reported,

The Messenger of Allah ﷺ used to straighten our shoulders during the prayer, saying, "Stand evenly and do not differ, lest your hearts 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 are far more divided."

Muslim 972

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا عبد الله بن إدريس وأبو معاوية ووكيع عن الأعمش عن عمارة بن عمير التيمي عن أبي معمر

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

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

مسلم 972صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Prayer
Chapter
Straightening and establishing the rows, the virtue of the first row and then those following it, crowding at the first row and racing to it, giving precedence to people of virtue and bringing them closer to the imam
Numbering
Darussalam 972
Muslim 972