Hadith 101

Riyad as-Salihin

Book 8: The Book of Virtues

Chapter 194

The Excellence of Standing in the First Row (In Salat)

باب فضل الصف الأول والأمر بإتمام الصفوف الأُول، وتسويتها والتراص فيها

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].