Sunan an-Nasa'i, Book 10, Hadith 39 (Nasa'i 817)

Anas narrated that the Prophet (ﷺ) said:

"Make your rows solid and close together, and keep your necks in line. By the One in Whose Hand is the soul of Muhammad! I can see the shaitan entering through the gaps in the rows as if they are small sheep."