Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Beware of the two practices that bring curses."The companions asked, "What are the two practices that bring curses, Messenger of Allah?"He replied, "The one who relieves himself on people's pathways or in the shade where they rest."

Muslim 618

Sahih

حدثنا يحيى بن أيوب وقتيبة وابن حجر جميعا عن إسمعيل بن جعفر قال ابن أيوب حدثنا إسمعيل أخبرني العلاء عن أبيه

عن أبي هريرة

أن رسول الله ﷺ قال اتقوا اللعانين قالوا وما اللعانان يا رسول الله قال الذي يتخلى في طريق الناس أو في ظلهم

مسلم 618صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Purification
Chapter
Prohibition of relieving oneself in pathways and shaded areas
Numbering
Darussalam 618
Muslim 618