Hadithcore
Sahih Muslim, 273a
sahih

Hudhaifa reported:

I was with the Messenger of Allah (ﷺ) when he came to the dumping ground of filth belonging to a particular tribe. He urinated while standing, and I went aside. He (the Prophet) asked me to come near him and I went so near to him that I stood behind his heels. He then performed ablution and wiped over his socks.

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

‏ ادْنُهْ ‏

‏ ‏.‏ فَدَنَوْتُ حَتَّى قُمْتُ عِنْدَ عَقِبَيْهِ فَتَوَضَّأَ فَمَسَحَ عَلَى خُفَّيْهِ ‏.‏

References2 variants
In-Book Reference
Book 2, Hadith 91
USC-MSA web (English) reference
Book 2, Hadith 522 (deprecated numbering scheme)
Sharh · explanationclick to expand
The Prophet (ﷺ) used to take much care of teaching Muslims the matters of purification and the etiquette of relieving oneself. In this hadith, Huthaifa ibn Al-Yaman, the noble Companion, narrated that he was with the Prophet (ﷺ) when he urinated in a garbage while standing, unlike his well-known habit of urinating while sitting. The Prophet (ﷺ) may have done it for one of the following reasons: (1) He did not find something to sit on, (2) He had something that prevented him from sitting such as a wound, or (3) To protect his private parts in this garbage. Huthaifa went aside until the Prophet (ﷺ) finished relieving himself. Afterward, the Prophet (ﷺ) asked him to come closer to take water for ablution. In the end, the Prophet (ﷺ) wiped over his leather socks instead of taking off and washing his feet. To wipe over them, a Muslim should wear leather socks after performing a complete ablution. Finally, this hadith contains the following benefits: (1) It is permissible to urinate while standing, and (2) The legitimacy of wiping over the socks..
Related hadiths2
Compare isnād across 2 related chains →