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:13120Abū al-Zinbāʿ Rawḥ b. al-Faraj > ʿAmr b. Khālid al-Ḥarrānī > Ibn Lahīʿah > Qurrah b. ʿAbd al-Raḥman > Ibn Shihāb > Sālim from his father

[Machine] That the Prophet ﷺ forbade praying on the roadside or relieving oneself there or urinating there.  

الطبراني:١٣١٢٠حَدَّثَنَا أَبُو الزِّنْبَاعِ رَوْحُ بْنُ الْفَرَجِ ثنا عَمْرُو بْنُ خَالِدٍ الْحَرَّانِيُّ ثنا ابْنُ لَهِيعَةَ عَنْ قُرَّةَ بْنِ عَبْدِ الرَّحْمَنِ عَنِ ابْنِ شِهَابٍ عَنْ سَالِمٍ عَنْ أَبِيهِ

أَنَّ النَّبِيَّ ﷺ «نَهَى أَنْ يُصَلَّى عَلَى قَارِعَةِ الطَّرِيقِ أَوْ يُضْرَبَ فِيهَا الْخَلَاءُ أَوْ يُبَالَ فِيهَا»  


See similar narrations below:

Collected by Ibn Mājah
ibnmajah:330Muḥammad b. Yaḥyá > ʿAmr b. Khālid > Ibn Lahīʿah > Qurrah > Ibn Shihāb > Sālim from his father

The Prophet forbade praying in the middle of the road, or defecating there, or urinating.  

ابن ماجة:٣٣٠حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى حَدَّثَنَا عَمْرُو بْنُ خَالِدٍ حَدَّثَنَا ابْنُ لَهِيعَةَ عَنْ قُرَّةَ عَنِ ابْنِ شِهَابٍ عَنْ سَالِمٍ عَنْ أَبِيهِ

أَنَّ النَّبِيَّ ﷺ نَهَى أَنْ يُصَلَّى عَلَى قَارِعَةِ الطَّرِيقِ أَوْ يُضْرَبَ الْخَلاَءُ عَلَيْهَا أَوْ يُبَالَ فِيهَا