Sunan Ibn Majah, Book 1, Hadith 65 (Ibn Majah 331)

It was narrated that Mugirah bin Shu'bah said:

"Whenever the Prophet went to relieve himself, he would go far away."