From Sahih Muslim (Hadith 975): 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