Sahih al-Bukhari, Book 74, Hadith 41 (Bukhari 5402)

Narrated An-Nazzal:

Ali came to the gate of the courtyard (of the Mosque) and drank (water) while he was standing and said, "Some people dislike to drink while standing, but I saw the Prophet (ﷺ) doing (drinking water) as you have seen me doing now."