Riyad as-Salihin

Anas (May Allah be pleased with him) reported: The Messenger of Allah (ﷺ) said, "Keep your rows straight (during Salat in congregation), for keeping the rows straight is part of the perfection of Salat."

[Al-Bukhari and Muslim].

- وعن أنس، رضي الله عنه قال‏:‏ قال رسول الله صلى الله عليه وسلم‏:‏ ‏"‏سووا صفوفكم، فإن تسوية الصف من تمام الصلاة‏"‏‏.‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏ وفي رواية البخاري‏:‏ ‏"‏فإن تسوية الصفوف من إقامة الصلاة‏"‏‏.‏