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.
ibnmajah:329Muḥammad b. Yaḥyá > ʿAmr b. Abū Salamah > Zuhayr > Sālim > al-Ḥasan > Jābir b. ʿAbdullāh

"The Messenger of Allah said: 'Beware of stopping to rest and praying in the middle of the road, for it is the refuge of snakes and carnivorous animals, and beware of relieving yourselves in the middle of the road, for this is an act that provokes curses.'"  

ابن ماجة:٣٢٩حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى حَدَّثَنَا عَمْرُو بْنُ أَبِي سَلَمَةَ عَنْ زُهَيْرٍ قَالَ قَالَ سَالِمٌ سَمِعْتُ الْحَسَنَ يَقُولُ حَدَّثَنَا جَابِرُ بْنُ عَبْدِ اللَّهِ قَالَ

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


See similar narrations below:

Collected by Suyūṭī
suyuti:9339a
Request/Fix translation

  

السيوطي:٩٣٣٩a

"إِيَّاكُمْ والتَّعْرِيسَ عَلَى جَوَادِّ الطَّريق والصَّلَاةَ عَلَيْهَا، فَإنَّهَا مَأوَى الحيَّاتِ والسِّبَاعِ، وَقَضَاءَ الحَاجَةِ عَلَيْهَا فَإِنَّهَا من المَلَاغِى ".  

[هـ] ابن ماجة عن جابر ؓ