The Messenger of Allah ﷺ said, "Beware of the two cursed acts."The companions asked, "What are the two cursed acts, Messenger of Allah?"He replied, "Relieving oneself in people's pathways or in their shaded resting places."
حدثنا قتيبة بن سعيد حدثنا إسمعيل بن جعفر عن العلاء بن عبد الرحمن عن أبيه
أن رسول الله ﷺ قال اتقوا اللاعنين قالوا وما اللاعنان يا رسول الله قال الذي يتخلى في طريق الناس أو ظلهم