Abdullah bin Masud reported,

The Prophet ﷺ said, "Let those who stand nearest to me be the men of maturity and understanding, then those who come after them, then those who come after them. Do not fall into disarray, or your hearts will fall into discord. And beware of the clamor of the marketplaces."

Abu Dawud 675

Sahih

حدثنا مسدد حدثنا يزيد بن زريع حدثنا خالد عن أبي معشر عن إبراهيم عن علقمة عن عبد الله عن النبي ﷺ مثله وزاد ولا تختلفوا فتختلف قلوبكم وإياكم وهيشات الأسواق

أبو داود 675صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer
Chapter
Those who are preferred to stand closest to the imam in the row and the dislike of staying back
Numbering
Darussalam 675
Abu Dawud 675