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.
abudawud:670Musaddad > Ḥumayd b. al-Aswad > Muṣʿab b. Thābit > Muḥammad b. Muslim > Anas Bihadhā al-Ḥadīth

when the Messenger of Allah ﷺ stood for prayer, he took it (the stick) in his right hand and turning (to the right side) said; keep straight and straighten your rows. He then took it in his left hand and said; keep straight and straighten your rows.  

أبو داود:٦٧٠حَدَّثَنَا مُسَدَّدٌ حَدَّثَنَا حُمَيْدُ بْنُ الأَسْوَدِ حَدَّثَنَا مُصْعَبُ بْنُ ثَابِتٍ عَنْ مُحَمَّدِ بْنِ مُسْلِمٍ عَنْ أَنَسٍ بِهَذَا الْحَدِيثِ قَالَ

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


See similar narrations below:

Collected by Bayhaqī
bayhaqi:2295Abū ʿAlī > Abū Bakr > Abū Dāwud > Musaddad > Ḥumayd b. al-Aswad > Muṣʿab b. Thābit > Muḥammad b. Muslim > Anas Bihadhā al-Ḥadīth

[Machine] Indeed, the Messenger of Allah ﷺ, when he stood for prayer, he would take hold of his right hand, then turn around and say, "Straighten your rows, align your rows." Then he would take hold of his left hand and say, "Straighten your rows, align your rows." The sheikh, may Allah the Most High have mercy on him, said, "And all other Sunnahs regarding the straightening of the rows and its manner are mentioned in the chapters of leadership, by the will of Allah."  

البيهقي:٢٢٩٥وَأَخْبَرَنَا أَبُو عَلِيٍّ أنبأ أَبُو بَكْرٍ ثنا أَبُو دَاوُدَ ثنا مُسَدَّدٌ ثنا حُمَيْدُ بْنُ الْأَسْوَدِ ثنا مُصْعَبُ بْنُ ثَابِتٍ عَنْ مُحَمَّدِ بْنِ مُسْلِمٍ عَنْ أَنَسٍ بِهَذَا الْحَدِيثِ قَالَ

إِنَّ رَسُولَ اللهِ ﷺ كَانَ إِذَا قَامَ إِلَى الصَّلَاةِ أَخَذَهُ بِيَمِينِهِ ثُمَّ الْتَفَتَ فَقَالَ اعْدِلُوا سَوُّوا صُفُوفَكُمْ ثُمَّ أَخَذَهُ بِيَسَارِهِ فَقَالَ اعْدِلُوا سَوُّوا صُفُوفَكُمْ قَالَ الشَّيْخُ رَحِمَهُ اللهِ تَعَالَى وَسَائِرُ السُّنَنِ فِي تَسْوِيَةِ الصُّفُوفِ وَكَيْفِيَّتِهَا مُخَرَّجَةٌ فِي أَبْوَابِ الْإِمَامَةِ بِمَشِيئَةِ اللهِ