Sunan Abi Dawud, Book 2, Hadith 278 (Abu 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.