Jabir bin Samura reported,

The Messenger of Allah ﷺ said, "Will you not line up in rows the way the angels line up before their Lord?"We asked, "How do the angels line up before their Lord?"He replied, "They complete the front rows first and stand closely packed together in the row."

Ibn Majah 992

Sahih

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

عن جابر بن سمرة السوائي قال

قال رسول الله ﷺ ألا تصفون كما تصف الملائكة عند ربها قال قلنا وكيف تصف الملائكة عند ربها قال يتمون الصفوف الأول ويتراصون في الصف

ابن ماجه 992صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Straightening the rows
Numbering
Darussalam 992
Ibn Majah 992