Its prohibited to offer Salah / Namaz while you are intoxicated.
O those who believe! The Divine wisdom behind the commandment "Don't pray while you are intoxicated" is both profound and compassionate. Prayer is a sacred act, a means of connecting with our Creator, and it requires a clear state of mind to fully comprehend its significance. Intoxication clouds our thoughts, distorts our perception, and impairs our ability to truly understand what we say during prayer. Our Lord in His infinite wisdom wants us to approach Him with utmost sincerity and consciousness, aware of the words we utter.
Moreover, Allah guides us on how to maintain purity when engaging in prayer. Except during travel or certain circumstances like illness or coming from relieving oneself or touching women where water may not be readily available for ablution (wudu), clean earth can be used as an alternative for purification. This demonstrates Allah's mercy towards His believers by making provisions for situations beyond their control.
In essence, this verse emphasizes the importance of mental clarity during prayer while also highlighting the flexibility within Islamic practices that accommodate various conditions faced by individuals. It serves as a reminder that Islam is not rigid but rather adaptable based on different circumstances one might find themselves in. May we always strive to maintain sobriety and purity so that our prayers are accepted by Allah, who is eternally forgiving and merciful towards His creation.