The Messenger of Allah ﷺ said: Be on your guard against three things which provoke cursing: easing in the watering places and on the thoroughfares, and in the shade (of the tree). (Using translation from Abū Dāʾūd 26)
قَالَ رَسُولُ اللهِ ﷺ اتَّقُوا الْمَلَاعِنَ الثَّلَاثَ الْبَرَازُ فِي الْمَوَارِدِ وَقَارِعَةِ الطَّرِيقِ وَالظِّلِّ