The Prophet ﷺ said: Set the rows in order, stand shoulder to shoulder, close the gaps, be pliant in the hands of your brethren, and do not leave openings for the devil. If anyone joins up a row, Allah will join him up, but if anyone breaks a row, Allah will cut him off. Abu Dawud said: The name of Abu Shjrah is Kathir b. Murrah. (Using translation from Abū Dāʾūd 666)
أَنَّ رَسُولَ اللهِ ﷺ قَالَ أَقِيمُوا الصُّفُوفَ وَحَاذُوا بَيْنَ الْمَنَاكِبِ وَسُدُّوا الْخَلَلَ وَلِينُوا بِأَيْدِي إِخْوَانِكُمْ وَلَا تَذَرُوا فُرُجَاتٍ لِلشَّيْطَانِ وَمَنْ وَصَلَ صَفًّا وَصَلَهُ اللهُ وَمَنْ قَطَعَ صَفًّا قَطَعَهُ اللهُ ﷻ قَالَ أَبُو دَاوُدَ لَمْ يَقُلْ عِيسَى بِأَيْدِي إِخْوَانِكُمْ