Question
Is it permissible according to the Shariah to lock a mosque?
Answer
Locking a mosque is not correct. A mosque should remain open at all times, so that whoever wishes, at whatever time, may go into it and remember Allah. Keeping the mosque locked is, in effect, preventing people from remembering Allah in it.
وقال اللّٰه تعالىٰ ﴿وَمَنْ أَظْلَمُ مِمَّن مَّنَعَ مَسَاجِدَ اللَّـهِ أَن يُذْكَرَ فِيهَا اسْمُهُ﴾
“Who is more unjust than the one who prevents the name of Allah from being mentioned in the mosques?”
However, if there is a fear that the things of the mosque will be stolen, and locking it does not necessarily involve obstructing or preventing the remembrance of Allah in it, then in such a case there appears to be no harm in locking the mosque. والله أعلم وعلمه أتم