Sunan Ibn Majah, Book 5, Hadith 191 (Ibn Majah 993)

It was narrated that Anas bin Malik said:

“The Messenger of Allah (ﷺ) said: ‘Make your rows straight, for straightening the rows is part of completing the prayer.’”