Hadith #407
Chapter: The Book of Virtues
كتاب الفضائل
Arabic Text
وعن أبي مسعود رضي الله عنه قال: كان رسول الله صلى الله عليه وسلم يمسح مناكبنا في الصلاة
ويقول: "استووا ولا تختلفوا فتختلف قلوبكم، ليلني منكم أولو الأحلام والنهى، ثم الذين يلونهم ثم الذين يلونهم". ((رواه مسلم)).
Isnad Chain
أبي مسعود
English Translation
Abu Mas'ud (may Allah be pleased with him) reported that the Messenger of Allah ﷺ used to gently pat our shoulders when we were standing in rows at the time of Salat and say, "Keep (the rows) straight; do not differ from each other lest your hearts should suffer from discord. Let those of you who are mature and prudent be nearer to me, and then those who are next to them.".
Quran References
Reference: Riyadh al-Salihin, Book 8, Hadith 407
Sunnah.com ref: riyadh-salihin 407
Islam.wiki ID: IWH-67245