وَعَنْ جَابِرٍ
قَالَ: كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: إِذَا أَرَادَ الْبَرَازَ انْطَلَقَ حَتَّى لَا يرَاهُ أحد
When the Prophet (sallallahu alayhi wa sallam) wished to relieve himself he went off where no one could see him.
Mishkat al-Masabih 320, Book 4, Purification, Hadith 56. 1 min read