Zazan reported,

Ali bin Abu Talib drank while standing, and the people looked at him as if they disapproved. He said, "Why are you looking at me? If I drink standing, I have seen the Prophet ﷺ drink standing, and if I drink sitting, I have seen the Prophet ﷺ drink sitting."

Azami 14385

Sahih

عن زاذان

أن علي بن أبي طالب شرب قائما، فنظر إليه الناس كأنهم أنكروه، فقال: ما تنظرون؟ إن أشرب قائما فقد رأيت النبي ﷺ يشرب قائما، وإن أشرب قاعدا فقد رأيت النبي ﷺ يشرب قاعدا.

الأعظمي 14385صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Etiquette of eating and drinking
Section
Permissibility of drinking while standing
Numbering
Jami al-Kamil 14385 (2nd edition)
Azami 14385