The Prophet saw me standing and passing water and said, "‘Umar, do not pass water standing." So I never did it again.
Tirmidhi and Ibn Majah transmitted it. The shaikh and imam Muhyi as-Sunna has given a sound tradition from Hudhaifa 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.
Zaid b. Haritha reported on the Prophet’s authority that when he first received inspiration Gabriel came to him and taught him the ablution and the prayer. When he finished the ablution he took a handful of water and sprinkled his private parts with it.