Anas bin Malik reported,

The Prophet of Allah ﷺ said, "Straighten your rows, draw them close together, and align your necks. By the One in whose hand is the soul of Muhammad, I see the devils slipping through the gaps in the row like little black sheep."

Nasai 816

Sahih

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

حدثنا أنس

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

النسائي 816صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Leadership
Chapter
Imam's urging to straighten the rows and bring them close together
Numbering
Darussalam 816
Nasai 816