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.
tirmidhi:229Hannād > Wakīʿ > Sufyān > Yaḥyá b. Hāniʾ b. ʿUrwah al-Murādī > ʿAbd al-Ḥamīd b. Maḥmūd

"We prayed behind one of the Amirs, the people compelled us such that we prayed between two columns. When we had prayed, Anas bin Malik said: 'We would be prevented from this during the time of Messenger of Allah.'"  

الترمذي:٢٢٩حَدَّثَنَا هَنَّادٌ حَدَّثَنَا وَكِيعٌ عَنْ سُفْيَانَ عَنْ يَحْيَى بْنِ هَانِئِ بْنِ عُرْوَةَ الْمُرَادِيِّ عَنْ عَبْدِ الْحَمِيدِ بْنِ مَحْمُودٍ قَالَ

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

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

See similar narrations below:

Collected by Ḥākim
hakim:762Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Usayd b. ʿĀṣim > al-Ḥusayn b. Jaʿfar > Sufyān > Abū Isḥāq b. Ibrāhīm b. Muḥammad b. Ḥātim al-Zāhid > Muḥammad b. Isḥāq al-Ṣaghānī > Muḥammad b. Juʿshum > Sufyān > Abū Bakr b. Isḥāq al-Faqīh > Muḥammad b. Ghālib > Abū Ḥudhayfah > Sufyān > Yaḥyá b. Hāniʾ b. ʿUrwah al-Murādī > ʿAbd al-Ḥamīd b. Maḥmūd > Ṣallaynā

"We prayed behind one of the Amirs, the people compelled us such that we prayed between two columns. When we had prayed, Anas bin Malik said: 'We would be prevented from this during the time of Messenger of Allah.'" (Using translation from Tirmidhī 229)   

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

صَلَّيْنَا خَلْفَ أَمِيرٍ مِنَ الْأُمَرَاءِ فَاضْطُرَّ النَّاسُ فَصَلَّيْنَا مَا بَيْنَ سَارِيَتَيْنِ فَلَمَّا صَلَّيْنَا قَالَ أَنَسُ بْنُ مَالِكٍ «كُنَّا نَتَّقِي هَذَا عَلَى عَهْدِ رَسُولِ اللَّهِ ﷺ»  

«هَذَا حَدِيثٌ صَحِيحٌ وَلَمْ يُخَرِّجَاهُ» صحيح