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