It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Keep your rows joined (firmly), bring them close to one another, and keep your necks level with one another; for by the One in whose hand is my soul! I see Satan entering through the gaps in the row as if they were small black kids of goats."
Imam Abu Dawud (may Allah have mercy on him) narrated it from Muslim bin Ibrahim (may Allah have mercy on him).
Also, Imam al-Nasa'i (may Allah have mercy on him) narrated it through Muhammad bin Abdullah bin al-Mubarak (may Allah have mercy on him), from Abu Hisham al-Makhzumi (may Allah have mercy on him), from Aban (may Allah have mercy on him).
And Abu Hatim bin Hibban al-Busti (may Allah have mercy on him) narrated it from Muhammad bin Ishaq bin Khuzaymah (may Allah have mercy on him), from Muhammad bin Ma'mar (may Allah have mercy on him), from Muslim bin Ibrahim (may Allah have mercy on him).