Hadith 364
عَنْ حُذَيْفَةَ قَالَ: أَتَى النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ سباطة قوم فَبَال قَائِما. . قيل: كَانَ ذَلِك لعذر
who said that the Prophet came to a midden and passed water standing. (Bukhari and Muslim.) It is said that that had a valid reason.