Narrated by Abu Hurairah (ra)
The Messenger of Allah ()) said, "Survive the two things that are cursing you. They said: O Messenger of Allah! Which brings curses? He said: [1] urine-toilets in the streets of human traffic or in their shade.
(The hadeeth narrated by Muslim, Abu Daud)
Footnote
[1] It means prohibition of urine and toilets when people use shade or tree or any such place as a shade for rest or for some reason.
Sahih Targib Wat Tahrib, Hadith No. 145
The tradition of the hadith: Sahih Hadith