Narrated Hudhaifah : The Apostle of Allaah ( sal Allaahu alayhi wa sallam ) came to a midden of some people and urinated while standing. He then asked for water and wiped his shoes. Abu Dawud said: Musaddad, a narrator, reported: I went far away from him. He then called me and I reached just near his heals.
The Prophet ﷺ was an example of perfect manners and conduct for all Muslims to follow, so it is important for us to remember this hadith whenever we find ourselves in a situation where we need to use the restroom in public. We must strive to uphold the same level of respect and modesty as the Prophet ﷺ did whenever we are out in public or interacting with others.