The construction of mosques and the care taken to keep them pure and clean
➊ It is narrated from Uthman ibn Affan (may Allah be pleased with him) that the Messenger of Allah ﷺ said:
من بنى لله مسجدا بنى الله له مثله فى الجنة
“Whoever builds a mosque for Allah, Allah the Exalted will build for him the like of it (a house) in Paradise.”
➋ It is narrated from Aishah (may Allah be pleased with her) that:
امر رسول الله ببناء المساجد فى الدوروأن تنظف وتطيب
“The Messenger of Allah ﷺ commanded that mosques be built in the neighbourhoods and that they be kept clean and perfumed.”
➌ Samurah (may Allah be pleased with him) wrote in a letter that:
فإن رسول الله صلى الله عليه وسلم كان يأمرنا بالمساجد أن نضعها فى دورنا و نصلح صنعتها و نطهرها
“The Messenger of Allah ﷺ used to command us to build mosques in the neighbourhoods, to improve their construction, and to keep them clean.”
Imam al-San’ani (may Allah have mercy on him) says that the command to build mosques in this hadith is for recommendation, because the Messenger of Allah ﷺ said: the whole earth has been made pure and a place of prayer for me; therefore, whoever the prayer overtakes:
فليصل حيث أدركنه
“let him pray right there where it overtakes him.”
Mosques are the places most beloved to Allah
It is narrated from Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah ﷺ said:
احب البلاد إلى الله مساجدها
“The places most beloved to Allah the Exalted are the mosques.”
Decorating and adorning mosques
and making them a cause of boasting and showing off is unlawful and forbidden.
➊ It is narrated from Ibn Abbas (may Allah be pleased with him) that the Messenger of Allah ﷺ said:
ما أمرت بتشييد المساجد
“I have not been commanded to adorn and decorate the mosques.”
Ibn Abbas (may Allah be pleased with him) said:
لتز خرفنها كما زخرفتها اليهود والنصارى
“You will surely adorn them, just as the Jews and Christians adorned them.”
➋ It is narrated from Anas (may Allah be pleased with him) that the Messenger of Allah ﷺ said:
لا تقوم الساعة حتى يتبـاهـي الـنـاس فـي المساجد
“The Hour will not be established until people boast to one another about (the construction of) mosques.”
This was the condition of the mosques in the era of the Messenger and of the Rightly-Guided Caliphs. The caliph al-Walid ibn Abd al-Malik was the first person to have the Prophet’s Mosque decorated, adorned and embellished with engravings. Since al-Walid was the ruler, the scholars were compelled to remain silent.
Hurrying to the mosque is forbidden
It is narrated from Abu Hurayrah (may Allah be pleased with him) that the Prophet ﷺ said:
إذا سمعتم الإقامة فامشوا إلى الصلاة وعليكم بالسكينة والوقار ولا تسرعوا فما أدركتم فصلوا وما فاتكم فأتموا
“When you hear the iqamah, walk to the prayer with calmness and dignity, and do not hurry. Pray what you catch, and complete what you miss afterwards.”
Although in the above hadith the prohibition is tied to hearing the iqamah, hurrying to the mosque before the iqamah is also forbidden, as in another hadith:
إذا أتيتم الصلاة فعليكم بالسكينة
“When you come to the prayer, come with calmness and composure.”
The condition of the iqamah in the first hadith is mentioned only because this is generally what drives a person to hurry.
Coming to the mosque after eating raw garlic and onion is forbidden
It is narrated from Jabir (may Allah be pleased with him) that the Messenger of Allah ﷺ said:
من اكل نومــا أو بـصــلا فليعتزلنا أو ليعتزل مسجدنا وليقعد فى بيته
“Whoever eats raw garlic or onion should keep away from us — or he said: should keep away from our mosque — and stay sitting in his house.”
The supplication for entering the mosque
➊ أعُوذُ بِاللهِ الْعَظِيمِ وَبِوَجْهِهِ الْكَرِيمِ وَسُلْطَانِهِ الْقَدِيمِ مِنَ الشَّيْطَانِ الرَّحِيمِ
➋ بِسْمِ اللهِ وَالصَّلَاةُ وَالسَّلَامُ عَلَى رَسُولِ اللهِ
➌ اللهُمَّ افْتَحُ لِى اَبْوَابَ رَحْمَتِكَ
The supplication for leaving the mosque
بِسْمِ اللهِ وَالصَّلَاةُ وَالسَّلامُ عَلَى رَسُولِ اللَّهِ
اللَّهُمَّ إِنِّى أَسْئلْكَ مِنْ فَضْلِكَ۔
اللَّهُمَّ أَعْصِمُنِي مِنَ الشَّيْطَانِ الرَّحِيمِ
Praying two rak’ahs before sitting in the mosque is necessary
It is narrated from Abu Qatadah (may Allah be pleased with him) that the Messenger of Allah ﷺ said:
إذا دخل أحدكم المسجد فلا يجلس حتى يصلي ركعتين
“When any of you enters the mosque, he should not sit until he has prayed two rak’ahs.”
Further detail on this issue will come later in “باب صلاة التطوع“.
Announcing a lost item in the mosque is not permissible
It is narrated from Abu Hurairah (may Allah be pleased with him) that the Messenger of Allah ﷺ said:
مس سمع رجــلا يـنـشـد ضــالـة فى المسجد فليقل: لا ردها الله عليك فإن المساجد لم تين لهذا
“Whoever hears a man announcing in the mosque a lost item of his, let him say: May Allah not return it to you, for the mosques were not built for this.”
Buying and selling in the mosque is forbidden
It is narrated from Abu Hurairah (may Allah be pleased with him) that the Messenger of Allah ﷺ said: When you see someone buying or selling in the mosque, say to him:
لا أربح الله تحارتك
“May Allah not make your trade profitable.”
Reciting poetry in the mosque that is not contrary to the Shariah is permissible.
It is narrated from Abu Hurairah (may Allah be pleased with him) that Umar (may Allah be pleased with him) passed by Hassan (may Allah be pleased with him): ينـشـد فـــي المسجد “He was reciting poetry in the mosque.” Umar (may Allah be pleased with him) gave him a stern look. Thereupon Hassan (may Allah be pleased with him) said: قد كنت أنشد فيه و فيه من هو خير منك “I used to recite poetry in it even when there was in it one who was better than you (meaning the Messenger of Allah ﷺ).”
Lying down in the mosque is permissible
Abbad ibn Tamim (may Allah be pleased with him) narrates from his paternal uncle that:
أنه رأى رسول الله مستلقيا فى المسجد واضعا بن إحدى رجليه على الأخرى
“He saw the Messenger of Allah ﷺ lying on his back in the mosque, with one leg placed over the other.”
Sleeping in the mosque is permissible
Ibn Umar (may Allah be pleased with them both) used to sleep in the mosque, and in one narration the Companions say:
كنا فى زمن رسول الله صلی اللہ علیہ وسلم ننام فى المسجد و نقيل فيه ونحن شاب
“In the time of the Prophet ﷺ we used to sleep in the mosque and take a midday nap in it, and we were young men.”
Pitching a tent in the mosque for a sick person
Imam al-Shawkani (may Allah have mercy on him) says that doing so is permissible when there is a need.
As narrated from Aisha (may Allah be pleased with her) that Sa’d (may Allah be pleased with him) was wounded on the day of the Battle of the Trench:
فضرب عليه رسول الله صلى الله عليه وسلم خيمة فى المسجد
“The Messenger of Allah ﷺ had a tent pitched for him in the mosque,” so that he could visit and care for him from close by.
A woman spending the night in the mosque
A woman too may spend the night in the mosque, provided there is no fear of any temptation or disorder.
As narrated from Aisha (may Allah be pleased with her) that:
ان وليدة سوداء كان لها خباء فى المسجد
“A black girl had a tent in the mosque.” She used to come to me to talk.
Carrying out retaliation and the prescribed punishments in the mosques is forbidden
Imam al-Shawkani (may Allah have mercy on him) and Imam al-San’ani (may Allah have mercy on him) hold this view.
It is narrated from Hakim ibn Hizam (may Allah be pleased with him) that the Messenger of Allah ﷺ said:
لا تقام الحدود فى المساجد ولا يستقاد فيها
“The prescribed punishments are not to be carried out in the mosques, nor is retaliation to be taken in them.”
Spitting in the mosque is a sin
1. It is narrated from Anas (may Allah be pleased with him) that the Messenger of Allah ﷺ said:
البصاق فى المسجد خطيئة وكفارتها دفنها
“Spitting in the mosque is a sin, and its expiation is to bury it.”
2. It is narrated from Abdullah ibn al-Shikhkhir (may Allah be pleased with him) that he said: I prayed with the Messenger of Allah ﷺ:
فرأيته يتنخع فدلكها بنعله اليسري
“and I saw him clear his throat, then he rubbed it (meaning the phlegm) with his left sandal.”
(Al-Shawkani, may Allah have mercy on him): Doing this is correct when nothing is spread out in the mosque. But if mats (carpets) or the like have been spread out in the mosque, such that burying the spittle, which is its expiation, is not possible, then this (that is, leaving the spittle without rubbing it away) will be a sin for which no expiation has been made.
Military training and displays of combat drills in the mosque are permissible
It is narrated from Aisha (may Allah be pleased with her) that she said: I saw the Messenger of Allah ﷺ that he was acting as a screen for me:
وانا أنظر إلى الحبشة يلعبون فى المسجد
“And I was watching the (martial) play of the Abyssinians, which they were playing in the mosque.”
In the narration of Sahih Muslim it says:
يلعبون بحرابهم فى مسجد رسول الله
“They were playing with spears in the Prophet’s Mosque.”
And in one narration of Sahih al-Bukhari the words are:
وكان يوم عيد يلعب السودان بالدرق والحراب
“Aisha (may Allah be pleased with her) says: On the day of Eid, some Companions from Sudan were playing with shields and spears.”
Eating in the mosque is permissible
It is narrated from Abdullah ibn al-Harith (may Allah be pleased with him) that:
كنا نأكل على عهد رسول الله فى المسجد الخبز و اللحم
“In the time of the Messenger ﷺ we used to eat bread and meat in the mosque.”
A polytheist may enter the mosque when there is a need
It is narrated from Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah ﷺ sent a small detachment in a certain direction:
فجاءت برجل تربطوه بسارية من سواري المسجد
“These men captured a man (Thumamah ibn Uthal, may Allah be pleased with him, who was still a polytheist) and brought him to the Prophet ﷺ, and the prisoner was tied to one of the pillars of the mosque.”
The Prophet’s ﷺ lodging the delegation of Thaqif (the polytheists among them) in the mosque is also evidence for this.
Leaving the mosque after the adhan
Doing so is not permissible except for an essential need, as it is narrated from Abu al-Sha’tha’ (may Allah be pleased with him) that a man left the mosque after the adhan for Asr, so Abu Hurayrah (may Allah be pleased with him) said:
اما هذا فقد عصى أبا القاسم
“He has disobeyed Abu al-Qasim (that is, Muhammad ﷺ).”
In a marfu’ narration from Abu Hurayrah (may Allah be pleased with him) these words are also found:
إذا كنتم فى المسجد فنودي الصلاة فلا يخرج أحدكم حتى يصلى
“When you are in the mosque and the adhan is called for prayer, none of you should go out before he has prayed.”
Waiting for prayer in the mosque is counted as prayer
It is narrated from Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah ﷺ said:
لا يزال أحدكم فى الصلاة ما دامت الصلاة تحبسه لا يمنعه أن ينقلب إلى أهله إلا الصلاة
“One of you remains in prayer as long as the prayer keeps him back, such that nothing prevents him from returning to his family except the prayer.”
Permissible speech and laughter in the mosque
It is permissible; there is no harm in it.
As is found in a hadith about the Companions:
كانوا يتحدثون فياخذون فى أمر الجاهلية فيضحكون و يتبسم
“The Companions would talk, take up matters of the Jahiliyyah, and laugh, but he ﷺ would smile at it.”
Entering the Kaaba and praying in it is permissible
It is narrated from Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah ﷺ, Usamah ibn Zayd, Bilal and Uthman ibn Talhah (may Allah be pleased with them) entered the House of Allah and closed the door. Then, when they opened the door, I was the first to enter, and meeting Bilal (may Allah be pleased with him) I asked him: هل صلى فيه رسول الله “Did the Messenger of Allah ﷺ pray in it?” He replied: نعم ، بين العمودين اليمانيين “Yes, between the two Yemeni pillars.”
Remember that only a voluntary prayer may be prayed in the Kaaba, but Imam al-Shafi’i (may Allah have mercy on him) and Imam Abu Hanifah (may Allah have mercy on him) also consider an obligatory prayer permissible in it, because it is a mosque.
Building a mosque among graves
If someone builds a mosque among the graves in a graveyard, its ruling is the same as that of a grave. It is narrated from Anas (may Allah be pleased with him) that:
كان يكره أن يبنى مسجد فى وسط القبور
“Building a mosque among the graves was disliked.”
Travel for the sake of nearness (to Allah) is permissible only to three mosques
It is narrated from Abu Hurayrah (may Allah be pleased with him) that the Prophet ﷺ said:
لا تشد الرحال إلا إلى ثلاثة مساجد : المسجد الحرام و مسجد الرسول، ومسجد الأقصى
“Journeys should be undertaken only to three mosques: the Sacred Mosque, the Prophet’s Mosque and the Aqsa Mosque.”