It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Prophet of Allah (peace and blessings be upon him) said: "Join your rows closely (and straighten them), lessen the gaps between the rows, and keep your necks level with one another; for by the One in whose hand is the soul of Muhammad (peace and blessings be upon him)! I truly see Satan entering through the gaps in the row."
Hadith Referenceالأحاديث المختارة / مسند أنس بن مالك رضي الله عنه / 2261
Hadith Takhrij«أخرجه ابن خزيمة فى صحيحه برقم: 1734، وابن حبان فى صحيحه برقم: 2171، 6346، والضياء المقدسي فى الأحاديث المختارة برقم: 2263، 2264، 2265، والنسائي فى المجتبى برقم: 815، والنسائي فى السنن الكبرى برقم: 891، وأبو داود فى سننه برقم: 664، والبيهقي فى السنن الكبرى برقم: 5260، وأحمد فى مسنده برقم: 12710، 13885، 14166، والطيالسي فى مسنده برقم: 2227» «أخرجه فتح الباري برقم: 617، 685، 689، وأخرجه رياض الصالحين برقم: 1135، وأخرجه شرح السنة برقم: 813»