وعن أبي مسعود عقبة بن عمرو البدري الأنصاري رضي الله عنه قال‏:‏ قال رسول الله صلى الله عليه وسلم ‏:‏ ‏"‏يؤم القوم أقرؤهم لكتاب الله، فإن كانوا في القراءة سواء، فأعلمهم بالسنة، فإن كانوا في السنة سواء، فأقدمهم هجرة، فإن كانوا في الهجرة سواء، فأقدمهم سنًا، ولا يؤمن الرجل الرجل في سلطانه، ولا يقعد في بيته على تكرمته إلا بإذنه‏"‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.‏ وفي رواية له‏:‏ ‏"‏فأقدمهم سلمًا‏"‏ بدل ‏"‏سنًا‏"‏ ‏:‏ أو إسلامًا‏.‏ وفي رواية‏:‏ يؤم القوم أقرؤهم لكتاب الله، وأقدمهم قراءة، فإن كانت قراءتهم فيؤمهم أقدمهم هجرة، فإن كانوا في الهجرة سواء، فليؤمهم أكبرهم سنًا‏"‏‏.‏
Copy
Abu Mas'ud Al-Ansari (May Allah be pleased with him) reported

Messenger of Allah (ﷺ) would place his hands upon our shoulders when we would form rows for As-Salat (the prayer) and say, "Stand in straight rows and do not differ among yourselves, or else your hearts will differ due to disaccord. Let those be nearest to me who are mature and endowed with understanding (of the religion), then those who are nearest to them in these respects and then those who are nearest to them".[Muslim].