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.’”