One day when I was with the Prophet he wanted to pass water, so he went to some soft ground at the foot of a wall and did it, after which he said, "When any of you wishes to pass water, he should look for to do it in.”
Anas said that when the Prophet entered the privy he took off his ring.
Abu Dawud, Nasa’i and Tirmidhi transmitted it. Tirmidhi said this is a hasan sahih gharib tradition, and Abu Dawud said this is a rejected (munkar) tradition. His version has "laid down” instead of "took off".