Hadithcore
Sunan Ibn Majah, 335
da’if· Darussalam

It was narrated that Jabir said:

"We went out on a journey with the Messenger of Allah, and the Messenger of Allah would not relieve himself until he had disappeared and could not be seen by anyone."

حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُوسَى، أَنْبَأَنَا إِسْمَاعِيلُ بْنُ عَبْدِ الْمَلِكِ، عَنْ أَبِي الزُّبَيْرِ، عَنْ جَابِرٍ، قَالَ خَرَجْنَا مَعَ رَسُولِ اللَّهِ ـ صلى الله عليه وسلم ـ فِي سَفَرٍ وَكَانَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ لاَ يَأْتِي الْبَرَازَ حَتَّى يَتَغَيَّبَ فَلاَ يُرَى ‏.‏

References2 variants
In-Book Reference
Book 1, Hadith 69
English Reference
Vol. 1, Book 1, Hadith 335