Sayyiduna Abu Mas’ud (may Allah be pleased with him) narrates: The Prophet (peace and blessings be upon him) used to pass his hand over our shoulders (before starting the prayer) and would say: “Do not differ with one another (in straightening the rows) or your hearts will differ. Let those among you who are wise and experienced stand closest to me, then those after them in rank, then those after them in rank.”
Hadith Referenceصحیح ابن حبان / كتاب الصلاة / 2178
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح: م، ومضى (2169). * [أَبِي] قال الشيخ: في الأصل: «ابن». تنبيه!! رقم (2169) = (2172) من «طبعة المؤسسة». - مدخل بيانات الشاملة -.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط الشيخين.