Sahih Muslim Book 2, Hadith Number 519.
Chapter : Easing is forbidden in the streets and under the shade.
Anas b. Malik reported: The Messenger of Allah (may peace be upon him) went to a far-off place in the desert (hidden from the sight of human beings) for relieving himself. Then I brought water for him and he cleansed himself.