Hadithcore
Sahih Muslim, 432 a
sahih

Abu Mas'ud reported:

The Messenger of Allah (ﷺ) used to touch our shoulders in prayer and say: Keep straight, don't be irregular, for there would be dissension in your hearts. Let those of you who are sedate and prudent be near me, then those who are next to them, then those who are next to them. Abu Mas'ud said: Now-a-days there is much dissension amongst you.

حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ إِدْرِيسَ، وَأَبُو مُعَاوِيَةَ وَوَكِيعٌ عَنِ الأَعْمَشِ، عَنْ عُمَارَةَ بْنِ عُمَيْرٍ التَّيْمِيِّ، عَنْ أَبِي مَعْمَرٍ، عَنْ أَبِي مَسْعُودٍ، قَالَ كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يَمْسَحُ مَنَاكِبَنَا فِي الصَّلاَةِ وَيَقُولُ ‏

‏ اسْتَوُوا وَلاَ تَخْتَلِفُوا فَتَخْتَلِفَ قُلُوبُكُمْ لِيَلِنِي مِنْكُمْ أُولُو الأَحْلاَمِ وَالنُّهَى ثُمَّ الَّذِينَ يَلُونَهُمْ ثُمَّ الَّذِينَ يَلُونَهُمْ ‏

‏ ‏.‏ قَالَ أَبُو مَسْعُودٍ فَأَنْتُمُ الْيَوْمَ أَشَدُّ اخْتِلاَفًا ‏.‏

References2 variants
In-Book Reference
Book 4, Hadith 134
USC-MSA web (English) reference
Book 4, Hadith 868 (deprecated numbering scheme)
Sharh · explanationclick to expand
Congregational prayer in mosques is of great importance and great reward. Thus, Islamic law cares about regulating its rows behind the imam so that people can feel psychological and physical discipline. In this hadith, the Prophet (ﷺ) commanded people of understanding and reason to directly stand behind him in prayer for the following reasons: (1) They have the priority to pray behind him, (2) They are the best people to convey his acts of prayer to others, (3) Their ability to remind him of something he may forget regarding Quranic verses or prayer moves, or (4) They are the best people to represent him if something happens to him during prayer. The rest of the people pray next to and behind this type of people. Then, women pray behind men's rows. As for the imams (leaders in prayer), this is the order: (1) Those who are best in the Quran memorization and have more knowledge, (2) Those who are best in Quran memorization, know the prayer's rules, and the adults, (3) Those who are less in knowledge. This does not mean confining the front rows to them, but this Prophetic command is to urge them to hasten to perform congregation prayer, directly learn how he prays, and convey his guidance to those behind them. Then, the Prophet (ﷺ) warned, "Beware of the commotion of markets.” He meant loud voices, noise, disputes, and trials in markets. As a result, we have to avoid these behaviors in prayers and mosques, as happens in markets..
Related hadiths8
Compare isnād across 8 related chains →