Mishkat al-Masabih #319
Purification
The Arabic includes the chain of narration (sanad) and the collector's commentary; the English translation shows the Prophet's words only.
وَعَنْ جَابِرٍ قَالَ: كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا أَرَادَ الْبَرَازَ انْطَلَقَ حَتَّى لَا يرَاهُ أحد. رَوَاهُ أَبُو دَاوُد
Jabir said that when the Prophet wished to relieve himself he went off where no one could see him.
Abu Dawud transmitted it.
Topics
About Mishkat al-Masabih
This hadith is #319 from Mishkat al-Masabih, in the Book of Purification.