The Messenger of Allah ﷺ said: Straighten your rows. for the straightening of a row is a part of the perfection of prayer. (Using translation from Muslim 433)
سَوُّوا صُفُوفَكُمْ فَإِنَّ تَسْوِيَةَ الصَّفِّ مِنْ تَمَامِ الصَّلَاةِ قَالَ عَبْدُ اللهِ أَظُنُّهُ عَنِ النَّبِيِّ ﷺ وَأَنَا أَحْسَبُ أَنِّي قَدْ أَسْقَطْتُهُ