The Messenger of Allah ﷺ used to straighten our rows when we stood up to pray, and when we were straight, he said: Allah is most great (takbir). (Using translation from Abū Dāʾūd 665)
كَانَ رَسُولُ اللهِ ﷺ يُسَوِّي صُفُوفَنَا إِذَا قُمْنَا إِلَى الصَّلَاةِ فَإِذَا اسْتَوَيْنَا كَبَّرَ