Bara bin Azib reported,

The Messenger of Allah ﷺ used to walk through the rows from one side to the other, touching our chests and shoulders and saying, "Do not stand unevenly, lest your hearts differ."He would also say, "Indeed, Allah and His angels send blessings upon the front rows."

Azami 2315

Sahih

عن البراء بن عازب قال

كان رسول الله ﷺ يتخلل الصف من ناحية إلى ناحية، يمسح صدورنا ومناكبنا ويقول: لا تختلفوا فتختلف قلوبكم. وكان يقول: إن الله وملائكته يصلون على الصفوف الأول.

الأعظمي 2315صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Leadership
Section
First row's virtue
Numbering
Jami al-Kamil 2315 (2nd edition)
Azami 2315