The Prophet ﷺ said, "Complete your rows, for straightening the row is part of the perfection of the prayer."
حدثنا وكيع حدثنا شعبة عن قتادة
أن النبي ﷺ قال أتموا صفوفكم فإن تسوية الصف يعني من تمام الصلاة
Its isnad is sahih. Abu Qatan is Amr bin Haytham.