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.
tabarani:9295Isḥāq b. Ibrāhīm > ʿAbd al-Razzāq > al-Thawrī And Ibn ʿUyaynah > Abū Isḥāq > Maʿdī Karib al-Hamdānī > Ibn Masʿūd

[Machine] I heard Ibn Masud saying, "Do not stand between the rows and do not pray when there are people passing in front of you."  

الطبراني:٩٢٩٥حَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ عَنْ عَبْدِ الرَّزَّاقِ عَنِ الثَّوْرِيِّ وَابْنِ عُيَيْنَةَ عَنْ أَبِي إِسْحَاقَ عَنْ مَعْدِي كَرِبَ الْهَمْدَانِيِّ قَالَ

سَمِعْتُ ابْنَ مَسْعُودٍ يَقُولُ «لَا تَصْطَفُّوا بَيْنَ الْأَسَاطِينِ وَلَا تُصَلِّ وَبَيْنَ يَدَيْكَ قَوْمٌ يَمُرُّونَ»