Sunan an-Nasa'i, Book 10, Hadith 35 (Nasa'i 813)

It was narrated that Al-Bara bin Azib said:

"The Messenger of Allah (ﷺ) used to go between the rows from one side to another, patting our shoulders and chests and saying: 'Do not make your rows ragged or your hearts will be filled with enmity toward one another.' And he used to say: 'Allah and His angels send Salah upon the front rows."'