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.
hakim:760Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Muḥammad b. Isḥāq al-Ṣaghānī > Yaʿlá b. ʿUbayd > al-Aʿmash > Ibrāhīm > Hammām

Hudhaifah led the people in prayer in al-Mada’in standing on the shop(or a bench). Abu Mas’ud took him by his shirt, and brought him down. When he( Abu Mas’ud) finished his prayer, he said: Do you not know that they(the people) were prohibited to do so. He said: Yes, I remembered when you pulled me down. (Using translation from Abū Dāʾūd 597)   

الحاكم:٧٦٠حَدَّثَنَا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا مُحَمَّدُ بْنُ إِسْحَاقَ الصَّغَانِيُّ ثنا يَعْلَى بْنُ عُبَيْدٍ ثنا الْأَعْمَشُ عَنْ إِبْرَاهِيمَ عَنْ هَمَّامٍ

أَنَّ حُذَيْفَةَ أَمَّ النَّاسَ بِالْمَدَائِنِ عَلَى دُكَّانٍ فَأَخَذَ أَبُو مَسْعُودٍ بِقَمِيصِهِ فَجَبَذَهُ فَلَمَّا فَرَغَ مِنْ صَلَاتِهِ قَالَ أَلَمْ تَعْلَمْ أَنَّهُمْ كَانُوا يَنْهَوْنَ عَنْ ذَلِكَ؟ أَوْ قَالَ أَلَمْ تَعْلَمْ أَنَّهُ كَانَ يُنْهَى عَنْ ذَلِكَ؟ قَالَ بَلَى قَدْ ذَكَرْتُ حِينَ مَدَدْتَنِي  

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

See similar narrations below:

Collected by Abū Dāwūd
abudawud:597Aḥmad b. Sinān And ʾAḥmad b. al-Furāt Abū Masʿūd al-Rāzī al-Maʿná > Yaʿlá > al-Aʿmash > Ibrāhīm > Hammām

Hudhaifah led the people in prayer in al-Mada’in standing on the shop(or a bench). Abu Mas’ud took him by his shirt, and brought him down. When he( Abu Mas’ud) finished his prayer, he said: Do you not know that they(the people) were prohibited to do so. He said: Yes, I remembered when you pulled me down.  

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

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