Some people take a lax attitude in mosques and would not mind stretching their legs in the direction of the Ka’abah or where copies of the Qur’an are kept. Is this acceptable? Is it also permissible for people to relax and sleep in mosques?

While appearances and physical gestures are important in their own way, Islam attaches far more importance to the intention and purpose behind any action. We may do certain things with good intention, but the result or the appearance may not fit in with our intention. It is an aspect of God’s grace that He relates our actions to our intentions. The Prophet, peace be upon him, is quoted as saying in an authentic tradition: “Actions are but by intention, and everyone shall have only what he has intended.” This means that we should not judge an action only by appearance, but must give enough importance for the intention behind that action.

In the light of the foregoing, if a person stretches his leg with the intention of showing disrespect to the Ka’abah or the Qur’an, then he is likely to be punished by God for his action. On the other hand, a person who stretches his leg in the same direction, which happens to be the natural way for him to do so, and does not intend anything other than relaxing his muscles, will incur no such punishment.

There is nothing wrong with a person who is tired sitting and relaxes in the mosque. Nor is there any sin if he falls asleep in a mosque. Indeed the Prophet, peace be upon him, used to spend the final ten days of Ramadhan in the mosque, where he would have his meals and sleep, but he would spend all the time when he was awake and alert in worship, glorifying God and reading the Qur’an. Of course, mosques must not be looked at, or treated, as a hotel or a rest house, but if one goes into a mosque for worship, and sits down to recite the Qur’an, or to wait for the next prayer, or to do something useful, such as a student studying for his exams in the mosque, and he falls asleep, then he commits no sin.