461 - حَدَّثَنَا الْحُمَيْدِيُّ قَالَ: ثنا سُفْيَانُ قَالَ: ثنا الْأَعْمَشُ، عَنْ عُمَارَةَ بْنِ عُمَيْرٍ، عَنْ أَبِي مَعْمَرٍ، عَنْ أَبِي مَسْعُودٍ قَالَ كَانَ رَسُولُ اللَّهِ صَلَّي اللهُ عَلَيْهِ وَسَلَّمَ يُقِيمُ مَنَاكِبَنَا فِي الصَّلَاةِ يَقُولُ: «لَا تَخْتَلِفُوا فَتْخَتَلِفَ قُلُوبُكُمْ، وَلْيَلِيَنِي مِنْكُمْ أُولُو الْأَحْلَامِ وَالنُّهَي ثُمَّ الَّذِينَ يَلُونَكُمْ ثُمَّ الَّذِينَ يَلُونَكُمْ»
Sayyiduna Abu Mas’ud Ansari (may Allah be pleased with him) narrates: The Noble Prophet (peace and blessings be upon him) used to straighten our shoulders before the prayer began and would say: “Do not differ among yourselves (i.e., do not stand ahead or behind each other), otherwise your hearts will also differ. Let those among you who are wise and experienced stand closest to me, then those who are next to them in rank, then those who are next to them in rank.”
Related hadith on this topic