Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:225ʿUthmān b. Abū Shaybah > Jarīr > Manṣūr > Abū Wāʾil > Ḥudhayfah > Raʾaytunī

The Prophet ﷺ and I walked till we reached the dumps of some people. He stood, as any one of you stands, behind a wall and urinated. I went away, but he beckoned me to come. So I approached him and stood near his back till he finished.  

البخاري:٢٢٥حَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ قَالَ حَدَّثَنَا جَرِيرٌ عَنْ مَنْصُورٍ عَنْ أَبِي وَائِلٍ عَنْ حُذَيْفَةَ قَالَ

رَأَيْتُنِي أَنَا وَالنَّبِيُّ ﷺ نَتَمَاشَى فَأَتَى سُبَاطَةَ قَوْمٍ خَلْفَ حَائِطٍ فَقَامَ كَمَا يَقُومُ أَحَدُكُمْ فَبَالَ فَانْتَبَذْتُ مِنْهُ فَأَشَارَ إِلَىَّ فَجِئْتُهُ فَقُمْتُ عِنْدَ عَقِبِهِ حَتَّى فَرَغَ  


See similar narrations below:

Collected by Muslim, Bayhaqī
muslim:273bYaḥyá b. Yaḥyá > Jarīr > Manṣūr > Abū Wāʾil

Abu Musa inflicted extreme rigour upon himself in the matter of urination and urinated in a bottle and said: When the skin of anyone amongst the people of Israel was besmeared with urine, he cut that portion with a cutter. Hudhaifa said: I wish that'your friend should not inflict such an extreme rigour. I and the Messenger of Allah ﷺ were going together till we reached the dumping ground of filth behind an enclosure. He stood up as one among you would stand up. and he urinated, I tried to turn away from him, but he beckoned to me, so I went to him and I stood behind him, till he had relieved himself.  

مسلم:٢٧٣bحَدَّثَنَا يَحْيَى بْنُ يَحْيَى أَخْبَرَنَا جَرِيرٌ عَنْ مَنْصُورٍ عَنْ أَبِي وَائِلٍ قَالَ

كَانَ أَبُو مُوسَى يُشَدِّدُ فِي الْبَوْلِ وَيَبُولُ فِي قَارُورَةٍ وَيَقُولُ إِنَّ بَنِي إِسْرَائِيلَ كَانَ إِذَا أَصَابَ جِلْدَ أَحَدِهِمْ بَوْلٌ قَرَضَهُ بِالْمَقَارِيضِ فَقَالَ حُذَيْفَةُ لَوَدِدْتُ أَنَّ صَاحِبَكُمْ لاَ يُشَدِّدُ هَذَا التَّشْدِيدَ فَلَقَدْ رَأَيْتُنِي أَنَا وَرَسُولُ اللَّهِ ﷺ نَتَمَاشَى فَأَتَى سُبَاطَةً خَلْفَ حَائِطٍ فَقَامَ كَمَا يَقُومُ أَحَدُكُمْ فَبَالَ فَانْتَبَذْتُ مِنْهُ فَأَشَارَ إِلَىَّ فَجِئْتُ فَقُمْتُ عِنْدَ عَقِبِهِ حَتَّى فَرَغَ  

bayhaqi:487Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-Ḥasan ʿAlī b. ʿĪsá b. Ibrāhīm > Musaddad b. Qaṭan > ʿUthmān b. Abū Shaybah > Jarīr b. ʿAbd al-Ḥamīd > Manṣūr b. al-Muʿtamir > Abū Wāʾil Shaqīq b. Salamah > Ḥudhayfah b. al-Yamān > Laqad Raʾaytunī

The Prophet ﷺ and I walked till we reached the dumps of some people. He stood, as any one of you stands, behind a wall and urinated. I went away, but he beckoned me to come. So I approached him and stood near his back till he finished. (Using translation from Bukhārī 225)   

البيهقي:٤٨٧أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو الْحَسَنِ عَلِيُّ بْنُ عِيسَى بْنِ إِبْرَاهِيمَ ثنا مُسَدَّدُ بْنُ قَطَنٍ ثنا عُثْمَانُ بْنُ أَبِي شَيْبَةَ نا جَرِيرُ بْنُ عَبْدِ الْحَمِيدِ عَنْ مَنْصُورِ بْنِ الْمُعْتَمِرِ عَنْ أَبِي وَائِلٍ شَقِيقِ بْنِ سَلَمَةَ عَنْ حُذَيْفَةَ بْنِ الْيَمَانَ قَالَ

لَقَدْ رَأَيْتُنِي أَنَا وَرَسُولُ اللهِ ﷺ نَتَمَاشَى فَأَتَى سُبَاطَةَ قَوْمٍ خَلْفَ الْحَائِطِ فَبَالَ كَمَا يَقُومُ أَحَدُكُمْ قَالَ فَانْتَبَذْتُ مِنْهُ فَأَشَارَ إِلِيَّ فَجِئْتُ فَقُمْتُ عِنْدَ عَقِبِهِ حَتَّى فَرَغَ  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ عُثْمَانَ بْنِ أَبِي شَيْبَةَ