Sahih Muslim, Book 4, Hadith 137 (Muslim 968)

Anas b. Malik reported:

The Messenger of Allah (ﷺ) said: Straighten your rows. for the straightening of a row is a part of the perfection of prayer.