Closing the Doors of Mosques
One of the rulings concerning mosques is whether or not it is permissible to close the doors of mosques at times other than the times of prayer.
In this regard, it is clearly present in the books of hadith that, at the time of construction, along with leaving places for doors, the doors can also be fitted there. Even the latches and the like of these doors are mentioned, although this is by indication, not explicitly. Thus, in one chapter heading of Sahih al-Bukhari it is narrated from Ibn Jurayj that Ibn Abi Mulaykah addressed me and said:
لو رأيت مساجد ابن عباس وأبوابها
O Abd al-Malik ibn Jurayj, if you had seen the mosques built by Ibn Abbas (may Allah be pleased with them both), (you would have known) to what degree the cleanliness and fineness of them and of their doors had reached.
And, let alone ordinary mosques, the door of the Bayt Allah Sharif, that is, the Ka’bah itself, is also mentioned. In Sahih al-Bukhari and Muslim and other books of hadith it is narrated from Ibn Umar (may Allah be pleased with them both), in which he relates that the Prophet ﷺ, Usama ibn Zayd, Bilal and Uthman ibn Talha (may Allah be pleased with them) entered the Bayt Allah Sharif.
فاغلقوا عليهم الباب فلما فتحوا كنت اول من ولج
They closed the door (from inside after going in). When they opened the door, I was the first to go in.
There are some more words later in this hadith, but our purpose is contained in these very words: that the Ka’bah had a door, which the Prophet ﷺ and the Companions (may Allah be pleased with them) who were with him closed from inside. Imam al-Bukhari gave this hadith the following chapter heading in Kitab al-Salah:
باب الابواب والغلق للكعبة والمساجد
That is, the account of the doors, and of the leaves that close them, for the Ka’bah and for ordinary mosques.
And in Kitab al-Jumu’ah he gave this hadith the following chapter heading:
باب اغلاق البيت
That is, the account of closing the doors of the Bayt Allah.
In this way, proof is found for doors and the like for the Bayt Allah Sharif and for ordinary mosques. It is also known that one may enter the Ka’bah of Allah and close its door from inside. The only matter that remains is whether, apart from the times of prayer, it is permissible at other times to close mosques by putting locks and the like on them or not.
In this regard, we have not come across any clear and explicit evidence proving permissibility; rather, on the contrary, some of the Hanafi jurists have declared it disliked. Moreover, al-Saymari said in “Sharh al-Kifaya” that Imam Abu Hanifa (may Allah have mercy on him) himself used to declare closing the doors of a mosque at any time to be prohibited. Imam al-Nawawi (may Allah have mercy on him) narrated this statement of his from “al-Kifaya” in “Rawdat al-Talibin” and retained it. Rather, he supported it.
The Hanafi argument for the impermissibility of closing mosques is from Surat al-Baqarah, verse 114, in which Allah says:
﴿وَمَنْ أَظْلَمُ مِمَّن مَّنَعَ مَسَاجِدَ اللَّهِ أَن يُذْكَرَ فِيهَا اسْمُهُ وَسَعَىٰ فِي خَرَابِهَا﴾
And who is more unjust than the one who prevents the mention of His name in the mosques of Allah and strives for their ruin.
In this verse, everyone who prevents people from the remembrance of Allah in the mosques, that is, from prayer and recitation, is condemned. Here, “mosque” does not mean only al-Masjid al-Haram, nor the Masjid al-Aqsa of Bayt al-Maqdis. Nor does “the unjust” mean only Bukhtnasr (Nebuchadnezzar) or the Christians who helped him. Nor are only the polytheists meant who, at Hudaybiyyah, prevented the Prophet ﷺ from entering al-Masjid al-Haram and from circumambulating the Bayt Allah. Rather, since this verse is general, every person who prevents people from any mosque is included. Those who want details can see the tafsir of Surat al-Baqarah, verse 114, and Surat al-Tawbah, verses 17 and 18. The details are found in Ibn Kathir, al-Qurtubi, Tafheem al-Quran and others. Reasoning from verse 114 of Surat al-Baqarah, the view that declares locking mosques at times other than prayer to be prohibited appeals to the heart.
Therefore, the trustees of mosques should pay attention to this. Instead of locking the mosques and preventing people from acts of worship in them such as remembrance and reflection, prayer and recitation, they should appoint one person as a supervisor who would keep watch over the things belonging to the mosque, such as the loudspeaker, carpets, clock, vacuum cleaner or electric carpet-cleaning machine, brass taps and other things, and who would also keep guard at night. He can be called the guard or the mosque’s attendant. He should be present at all times and keep the doors of the mosque open, so that those who come at any time, whether fitting or not, find the House of Allah open, and so that this warning against preventing people from the houses of Allah does not apply to anyone.
The second opinion:
But what can be done when not every trustee has the courage to keep an attendant or appoint a guard in every mosque? Therefore the institutions of Awqaf and Islamic Affairs, which manage and administer the mosques, impose a restriction on the imam or muadhdhin to open the mosque at the time of prayer and close it after the prayer. This is done out of the compulsion of theft and petty crime, which has been faced not just since today but for centuries, because Allama Zarkashi (may Allah have mercy on him), who was born in the eighth century Hijri and died in it, has written:
Acting on not closing the mosques was possible in the blessed era of the righteous predecessors, but not now. Rather, another opinion on this matter is that since crimes have greatly increased in this age, there is also the fear of theft from the houses of Allah, and there is also the danger of people entering the mosques and breaking into adjoining houses or shops, or of theft by breaking through a wall. Therefore, to avoid these evils, it is permissible to close the mosques.
These are the fears of a scholar of the eighth century Hijri, and now these fears have taken the form of realities. Indeed, such incidents of theft and petty crime keep occurring: somewhere an amplifier machine, somewhere a horn unit, and somewhere something else is stolen. Therefore, in view of these circumstances, it will also be permissible to act on this second opinion, that the mosques be closed at all times other than the times of prayer, for example from sunrise until 12 noon, and then from the Isha prayer until Fajr. Today the second opinion is also being practised in Arab countries. Rather, even those in our countries who hold the first opinion of prohibition close the mosques at these times, especially the people of the cities.
The fatwa of Ustadh al-Asatidhah, Shaykh al-Hadith Sayyid Nadhir Husain Muhaddith Dehlawi (may Allah have mercy on him) is also the same:
Locking without reason is forbidden, and it is permissible in the case of fear of theft, provided there is no obstruction to the remembrance of Allah.
However, the imams and muadhdhins who close and open the mosques should make sure to keep the mosques open for a reasonable time before the adhan of any prayer and for a sufficient time after it. Here in the Arab countries there is a formal order from the Awqaf and Islamic Affairs authorities to open the mosque at least 10 to 15 minutes before every prayer, to leave it open for at least half an hour or 20 minutes after the prayer, and then to close it. This is what we learned when we contacted some imams, muadhdhins and people connected with the Awqaf.
Now if someone, because of his personal engagements, does not give the worshippers this much time, then that is his mistake, and he himself is responsible for its evil consequences. In acting on this opinion, in those mosques where attendants or doorkeepers have been appointed, as generally happens in our country, those people should act on the words of Allama Taj al-Din al-Subki (may Allah have mercy on him). He writes in “Mu’id al-Ni’am”:
The doorkeeper or attendant should spend the night somewhere near the door of the mosque, so that if any worshipper wants to come to the mosque at night for tahajjud and the like, he can come. Some people, once they close the door after Isha or at some other time, do not open it when anyone comes; this attitude is not correct for them.
In the light of this statement of Allama al-Subki (may Allah have mercy on him), those attendants and doorkeepers who keep the doors of mosques and madrasas closed despite need, and open them only at the time of congregational prayer, should reconsider their attitude. If someone comes at another time out of need, they do not let him enter, even though they are themselves present.
And Allama Jamal al-Din al-Qasimi (may Allah have mercy on him) has written in “Islah al-Masajid”:
Keeping the doors of mosques and madrasas closed without need is forbidden by agreement. However, the doors may be closed at night for fear of theft and the like, and one will also have to consider whether such a need is real or not.
And concerning the attendant or doorkeeper of the mosque, he says:
If the doors of the mosque are closed because of some such real need, it is obligatory upon him to sleep near the door so that he can wake up when someone wakes him. The salary he receives is given for this very reason, that those who come to the mosque may have ease because of him. If he does not take this into account, then in their words his salary will not be permissible.