Jabir bin Samura reported,

The Messenger of Allah ﷺ came out to us and said, "Why do I see you raising your hands as though they were the tails of restless horses? Be still in the prayer."Then he came out to us and saw us in scattered circles and said, "Why do I see you in separate groups?"Then he came out to us and said, "Will you not form your rows as the angels form their rows before their Lord?"We asked, "Messenger of Allah, how do the angels form their rows before their Lord?"He replied, "They complete the front rows first, and they pack themselves tightly together in the row."

Azami 2329

Sahih

عن جابر بن سمرة قال

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

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