Abu Dawud Book 1, Hadith Number 26.
Chapter : Places where urinating is prohibited.
Narated By Mu’adh ibn Jabal : The Apostle of Allah (PBUH) 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).