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."
قال رسول الله ﷺ: اتقوا اللعانين. قيل: وما اللعانان يا رسول الله؟ قال: الذي يتخلى في طريق الناس أو في ظلهم.