Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Beware of the two things that bring curses."Someone asked, "What are the two things that bring curses, Messenger of Allah?"He replied, "The one who relieves himself in people's pathways or in their shaded resting places."

Azami 14762

Sahih

عن أبي هريرة قال

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

الأعظمي 14762صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Etiquette of the road, walking, and travel
Section
Prohibition of harming people in their pathways
Numbering
Jami al-Kamil 14762 (2nd edition)
Azami 14762