From his father, from his grandfather who said: "I saw the Messenger of Allah (ﷺ) drinking while standing and sitting."

This Hadith is Hasan Sahih.

Jami` at-Tirmidhi Book 26, Hadith 23