Drinking From the Masjid Water Cooler Before Tahiyyah al-Masjid
In The Name of Allah, The Most Merciful, The Bestower of Mercy.
If a water cooler is inside the Masjid and a person enters the Masjid, should he sit down to drink, or stand while drinking? This is because if he sits, he would be opposing the statement of the Prophet, peace and blessings of Allah be upon him: “When one of you enters the Masjid, he should not sit until he has prayed two rak‘ahs.” And if he stands, while drinking, he has left what is better (i.e. to sit while drinking) .
We say: it is better (or more virtuous) to stand while drinking because sitting before the two rak‘ahs prayer (i.e. Tahiyyah al-Masjid) is regarded forbidden by some scholars as opposed to standing while drinking which is less unpreferable (in this case). Thus, based on this, he should stand while drinking and then proceed to pray Tahiyyah al-Masjid).
An Excerpt from “Sharh Riyaadh as-Salihin” 2/606 by Imam Muhammad Ibn Salih al-Uthaymin, may Allah have mercy upon him.