حَدَّثَنَا أَبُو الْوَلِيدِ الطَّيَالِسِيُّ، وَسُلَيْمَانُ بْنُ حَرْبٍ، قَالاَ حَدَّثَنَا شُعْبَةُ، عَنْ قَتَادَةَ، عَنْ أَنَسٍ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " سَوُّوا صُفُوفَكُمْ فَإِنَّ تَسْوِيَةَ الصَّفِّ مِنْ تَمَامِ الصَّلاَةِ " .
Anas reported the Messenger of Allah (ﷺ) as saying :Straighten your rows for the straightening of the rows is part of perfecting the prayer
Grade (as given by the source): Al-Albani: Sahih Muhammad Muhyi Al-Din Abdul Hamid: Sahih Shuaib Al Arnaut: Sahih Zubair Ali Zai: Sahih Bukhari (723) Sahih Muslim (433)