It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him): "A vessel containing milk was brought to the Messenger of Allah (peace and blessings be upon him) while he (peace and blessings be upon him) was on his mount, and it was kneeling, so he (peace and blessings be upon him) drank it sitting (in that state). A few men of Quraysh had surrounded him (peace and blessings be upon him), so he (peace and blessings be upon him) handed the vessel to the person next to him, who drank standing; then the others also took it and drank in turn, standing. But they did not point any of it towards me at all. May this preference and selfishness of Quraysh weigh upon you!"
In another chain of this same hadith it is narrated that Muslim (may Allah have mercy on him) asked Sayyiduna Abu Hurayrah (may Allah be pleased with him) about drinking while standing, and he said: "O my nephew, I saw the Messenger of Allah (peace and blessings be upon him) when he (peace and blessings be upon him) had hobbled his she-camel while it was kneeling, and I was holding its nose-rein, or he said its halter, with my foot placed on its foreleg. Meanwhile some people of Quraysh came and stood around him (peace and blessings be upon him). A vessel of milk was presented to the Messenger of Allah (peace and blessings be upon him), and he (peace and blessings be upon him) drank it while seated on his mount; then he gave the vessel to the person on his right, who drank standing, until the whole group drank it standing."
It is narrated from Sayyiduna Abdullah bin Amr bin al-As (may Allah be pleased with them both) that he said: "I saw the Messenger of Allah (peace and blessings be upon him) drinking water both standing and sitting; he (peace and blessings be upon him) would turn away (after finishing the prayer) from both his right and his left sides; he (peace and blessings be upon him) would fast while travelling and would also break the fast (i.e. not fast); he (peace and blessings be upon him) would pray both barefoot and wearing sandals; and likewise he (peace and blessings be upon him) would put on his sandals both standing and sitting."
Imam Abu Dawud, Imam Ibn Majah and Imam al-Tirmidhi recorded this hadith in their books in abridged form by way of Husayn bin Dhakwan al-Mu'allim, and Imam al-Tirmidhi graded it hasan (good). Imam al-Tirmidhi also said: In this chapter there are also narrations from Sayyiduna Ali, Sayyiduna Sa'd, Sayyiduna Abdullah bin Amr and Sayyidah Aishah (may Allah be pleased with them).
It is narrated from Sayyiduna Ali (may Allah be pleased with him) that Maysarah saw him drinking water while standing, so he said (in surprise): Are you drinking standing! He replied: "If I drink standing, I have certainly seen the Messenger of Allah (peace and blessings be upon him) drinking standing, and if I drink sitting, I have seen the Messenger of Allah (peace and blessings be upon him) drinking sitting."
Abu Bakr bin Abi Shaybah also narrated this report likewise with the chain of Muhammad bin Fudayl, and Imam al-Bukhari and Imam Abu Dawud recorded from this hadith only the incident of drinking while standing.