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