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.
bayhaqi:2294Abū ʿAlī al-Rūdhbārī > Abū Bakr b. Dāsah > Abū Dāwud > Qutaybah > Ḥātim b. Ismāʿīl > Muṣʿab b. Thābit b. ʿAbdullāh b. al-Zubayr > Muḥammad b. Muslim b. al-Sāʾib Ṣāḥib al-Maqṣūrah > Ṣallayt > Janb Anas b. Mālik Yawm

one day I prayed by the side of Anas b. Malik. He said ; Do you know why this stick is placed here ? I said : No, by Allah. He said; The Messenger of Allah ﷺ used to put his hand upon it and say: Keep straight and straighten your rows. (Using translation from Abū Dāʾūd 669)   

البيهقي:٢٢٩٤أَخْبَرَنَا أَبُو عَلِيٍّ الرُّوذْبَارِيُّ أنبأ أَبُو بَكْرِ بْنُ دَاسَةَ ثنا أَبُو دَاوُدَ ثنا قُتَيْبَةُ ثنا حَاتِمُ بْنُ إِسْمَاعِيلَ عَنْ مُصْعَبِ بْنِ ثَابِتِ بْنِ عَبْدِ اللهِ بْنِ الزُّبَيْرِ عَنْ مُحَمَّدِ بْنِ مُسْلِمِ بْنِ السَّائِبِ صَاحِبِ الْمَقْصُورَةِ قَالَ صَلَّيْتُ إِلَى جَنْبِ أَنَسِ بْنِ مَالِكٍ يَوْمًا فَقَالَ

هَلْ تَدْرِي لِمَ صُنِعَ هَذَا الْعُودُ؟ قُلْتُ لَا وَاللهِ قَالَ كَانَ رَسُولُ اللهِ ﷺ يَضَعُ عَلَيْهِ يَدَهُ فَيَقُولُ اسْتَوُوا اعْدِلُوا صُفُوفَكُمْ  


See similar narrations below:

Collected by Abū Dāwūd
abudawud:669Qutaybah > Ḥātim b. Ismāʿīl > Muṣʿab b. Thābit b. ʿAbdullāh b. al-Zubayr > Muḥammad b. Muslim b. al-Sāʾib Ṣāḥib al-Maqṣūrah > Ṣallayt > Janb Anas b. Mālik Yawm

one day I prayed by the side of Anas b. Malik. He said ; Do you know why this stick is placed here ? I said : No, by Allah. He said; The Messenger of Allah ﷺ used to put his hand upon it and say: Keep straight and straighten your rows.  

أبو داود:٦٦٩حَدَّثَنَا قُتَيْبَةُ حَدَّثَنَا حَاتِمُ بْنُ إِسْمَاعِيلَ عَنْ مُصْعَبِ بْنِ ثَابِتِ بْنِ عَبْدِ اللَّهِ بْنِ الزُّبَيْرِ عَنْ مُحَمَّدِ بْنِ مُسْلِمِ بْنِ السَّائِبِ صَاحِبِ الْمَقْصُورَةِ قَالَ صَلَّيْتُ إِلَى جَنْبِ أَنَسِ بْنِ مَالِكٍ يَوْمًا فَقَالَ

هَلْ تَدْرِي لِمَ صُنِعَ هَذَا الْعُودُ فَقُلْتُ لاَ وَاللَّهِ قَالَ كَانَ رَسُولُ اللَّهِ ﷺ يَضَعُ يَدَهُ عَلَيْهِ فَيَقُولُ اسْتَوُوا وَعَدِّلُوا صُفُوفَكُمْ