Abdullah bin Umar reported,

The Messenger of Allah ﷺ said, "Straighten the rows, align your shoulders, close the gaps, be gentle in the hands of your brothers, and do not leave openings for the devil. Whoever joins a row, Allah will join him, and whoever cuts off a row, Allah will cut him off."

Azami 2330

Sahih

عن عبد الله بن عمر

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

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