كتاب الفضائل
8  
The Book of Virtues
(194)
Chapter: The Excellence of Standing in the First Row (In Salat)
(194)
- باب فضل الصف الأول والأمر بإتمام الصفوف الأُول، وتسويتها والتراص فيها
Riyad as-Salihin 1091
Ibn 'Umar (May Allah be pleased with them) reported:
The Messenger of Allah (ﷺ) said, "Arrange the rows in order, stand shoulder to shoulder, close the gaps, be accommodating to your brothers, and do not leave gaps for Satan. Whoever joins up a row, he will be joined to Allah (i.e., to the Mercy of Allah); and whoever cuts off a row, he will be cut off from Allah (i.e., from His Mercy)."

[Abu Dawud].

وعن ابن عمر رضي الله عنهما، أن رسول الله صلى الله عليه وسلم قال‏:‏ ‏ "‏أقيموا الصفوف، وحاذوا المناكب، وسدوا الخلل، ولينوا بأيدي إخوانكم، ولا تذروا فرجات للشيطان، ومن وصل صفًا وصله الله، ومن قطع صفًا قطعه الله‏"‏‏.‏ ‏(‏‏(‏رواه أبو داود بإسناد صحيح‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 1091
In-book reference : Book 8, Hadith 101