Sahih Muslim Book 002, Hadith Number 0519.

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.

Related Hadith(s)