Bulugh al-Maram, Book 1, Hadith 97 (English)

Narrated Abu Huraira (rad): Allah’s Messenger said: “Safeguard yourselves from the two matters which cause accursing that befalls the one who relieves himself on people’s path-ways and under the shades.” [Reported by Muslim].

وَعَنْ أَبِي هُرَيْرَةَ ‏- رضى الله عنه ‏- قَالَ: قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ اِتَّقُوا اَللَّاعِنِينَ: اَلَّذِي يَتَخَلَّى فِي طَرِيقِ اَلنَّاسِ, أَوْ فِي ظِلِّهِمْ } رَوَاهُ مُسْلِم ٌ (107)‏.‏ ‏1 ‏- صحيح.‏ رواه مسلم (269)‏.‏

sunnah.com

also referenced under: Book 1, Hadith 109 (In-Book)