Sahih Muslim Book 2, Hadith Number 518.
Chapter : Easing is forbidden in the streets and under the shade.
Anas b. Malik reported: When the Messenger of Allah (may peace be upon him) entered the privy, a servant and I used to carry a skin of water, and a pointed staff, and he would cleanse himself with water.