Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:3998a

This is what was transmitted to us by Abu Huraira from the Messenger of Allah ﷺ and, while making a mention of a few ahadith, said: (The Messengerof Allah directed us thus): Establish rows in prayer, for the making of a row (straight) is one of the merits of prayer. (Using translation from Muslim 435)   

السيوطي:٣٩٩٨a

"أقيموا الصّفَّ في الصلاة، فإن إقامةَ الصفَّ مِن حُسْنِ الصلاةِ .  

[عب] عبد الرازق [حم] أحمد [م] مسلم [حب] ابن حبّان عن أبي هريرة

See similar narrations below:

Collected by Muslim, Aḥmad, Ḥākim, Ibn Ḥibbān, Suyūṭī
muslim:435Muḥammad b. Rāfiʿ > ʿAbd al-Razzāq > Maʿmar > Hammām b. Munabbih > Hadhā Mā > Abū Hurayrah

This is what was transmitted to us by Abu Huraira from the Messenger of Allah ﷺ and, while making a mention of a few ahadith, said: (The Messengerof Allah directed us thus): Establish rows in prayer, for the making of a row (straight) is one of the merits of prayer.  

مسلم:٤٣٥حَدَّثَنَا مُحَمَّدُ بْنُ رَافِعٍ حَدَّثَنَا عَبْدُ الرَّزَّاقِ حَدَّثَنَا مَعْمَرٌ عَنْ هَمَّامِ بْنِ مُنَبِّهٍ قَالَ هَذَا مَا حَدَّثَنَا أَبُو هُرَيْرَةَ

عَنْ رَسُولِ اللَّهِ ﷺ فَذَكَرَ أَحَادِيثَ مِنْهَا وَقَالَ أَقِيمُوا الصَّفَّ فِي الصَّلاَةِ فَإِنَّ إِقَامَةَ الصَّفِّ مِنْ حُسْنِ الصَّلاَةِ  

ahmad:13900Wakīʿ > Shuʿbah > Qatādah > Anas

[Machine] The Messenger of Allah, ﷺ , said: "Arrange your rows (in prayer) properly, for indeed, part of perfecting the prayer is the proper arrangement of the rows."  

أحمد:١٣٩٠٠حَدَّثَنَا وَكِيعٌ عَنْ شُعْبَةَ عَنْ قَتَادَةَ عَنْ أَنَسٍ قَالَ

قَالَ رَسُولُ اللهِ ﷺ أَقِيمُوا صُفُوفَكُمْ فَإِنَّ مِنْ حُسْنِ الصَّلَاةِ إِقَامَةَ الصَّفِّ  

ahmad:12841Wakīʿ > Shuʿbah > Qatādah > Anas b. Mālik

[Machine] The Messenger of Allah ﷺ said, "Straighten your rows, for indeed, the proper establishment of the rows is a part of perfecting the prayer."  

أحمد:١٢٨٤١حَدَّثَنَا وَكِيعٌ حَدَّثَنَا شُعْبَةُ عَنْ قَتَادَةَ عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ

قَالَ رَسُولُ اللهِ ﷺ أَقِيمُوا صُفُوفَكُمْ فَإِنَّ مِنْ حُسْنِ الصَّلَاةِ إِقَامَةَ الصَّفِّ  

ahmad:8157

[Machine] And the Messenger of Allah ﷺ said, "Establish the rows in prayer, for indeed, the proper arrangement of rows is part of the excellence of prayer."  

أحمد:٨١٥٧

وَقَالَ رَسُولُ اللهِ ﷺ أَقِيمُوا الصَّفَّ فِي الصَّلَاةِ فَإِنَّ إِقَامَةَ الصَّفِّ مِنْ حُسْنِ الصَّلَاةِ  

hakim:787Abū Bakr b. Isḥāq al-Faqīh > al-Ḥasan b. ʿAlī b. Ziyād > Ibrāhīm b. Mūsá > Wakīʿ > Shuʿbah > Qatādah > Anas > Qāl Rasūl

[Machine] The Messenger of Allah ﷺ said, "Among the beauty of prayer is maintaining the rows."  

الحاكم:٧٨٧أَخْبَرَنَا أَبُو بَكْرِ بْنُ إِسْحَاقَ الْفَقِيهُ أَنْبَأَ الْحَسَنُ بْنُ عَلِيِّ بْنِ زِيَادٍ ثنا إِبْرَاهِيمُ بْنُ مُوسَى ثنا وَكِيعٌ عَنْ شُعْبَةَ عَنْ قَتَادَةَ عَنْ أَنَسٍ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ «مِنْ حُسْنِ الصَّلَاةِ إِقَامَةُ الصَّفِّ»  

«هَذَا حَدِيثٌ صَحِيحٌ عَلَى شَرْطِ الشَّيْخَيْنِ وَإِنَّمَا اتَّفَقَا عَلَى غَيْرِ هَذَا اللَّفْظِ وَهُوَ أَنَّ تَسْوِيَةَ الصَّفِّ مِنْ تَمَامِ الصَّلَاةِ» على شرطهما

ذِكْرُ الْبَيَانِ بِأَنَّ إِقَامَةَ الصُّفُوفِ لِلصَّلَاةِ مِنْ حُسْنِ الصَّلَاةِ

ibnhibban:2177Ibn Qutaybah > Ibn Abū al-Sarī > ʿAbd al-Razzāq > Maʿmar > Hammām b. Munabbih > Abū Hurayrah

[Machine] The messenger of Allah ﷺ said, "Arrange the rows in prayer, for indeed the straightening of the rows is part of the perfection of prayer."  

ابن حبّان:٢١٧٧أَخْبَرَنَا ابْنُ قُتَيْبَةَ قَالَ حَدَّثَنَا ابْنُ أَبِي السَّرِيِّ قَالَ حَدَّثَنَا عَبْدُ الرَّزَّاقِ قَالَ أَخْبَرَنَا مَعْمَرٌ عَنْ هَمَّامِ بْنِ مُنَبِّهٍ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ «أَقِيمُوا الصَّفَّ فِي الصَّلَاةِ فَإِنَّ إِقَامَةَ الصَّفِّ مِنْ حُسْنِ الصَّلَاةِ»