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."
حدثنا يحيى بن أيوب وقتيبة وابن حجر جميعا عن إسمعيل بن جعفر قال ابن أيوب حدثنا إسمعيل أخبرني العلاء عن أبيه
أن رسول الله ﷺ قال اتقوا اللعانين قالوا وما اللعانان يا رسول الله قال الذي يتخلى في طريق الناس أو في ظلهم