O you who believe, do not approach the prayer while you are intoxicated[31] until you know what you are saying, nor in a state of major impurity – except while passing through [a mosque] – until you take a bath. If you are ill, or on a journey, or have relieved yourselves, or had intercourse with [your] women and find no water, then purify yourselves with clean earth and wipe your faces and hands with it. For Allah is Ever-Pardoning, All-Forgiving.
[31] The use of intoxicants was later prohibited completely. See 5:90-91.