Mosques in Islam: Rulings, Etiquettes, and Special Virtues

اردو میں پڑھیں
Font size:
This excerpt is taken from the book Sahih Namaz Nabawi ﷺ, published by Maktaba Darul Andalus, authored by Shaykh Abdur Rahman Aziz.

The Subject of Mosques:

❀ The Messenger of Allah ﷺ said:

أحب البلاد إلى الله تعالى مساجدها

“The most beloved of places to Allah, the Most High, is the mosque.”

Reference: Muslim, Kitab al-Masajid, Bab Fadl al-Julus fi Musallahu ba’d al-Subh wa Fadl al-Masajid: 671

The Virtue of Building a Mosque:

❀ Allah, the Most High, says:

إِنَّمَا يَعْمُرُ مَسَاجِدَ اللَّهِ مَنْ آمَنَ بِاللَّهِ وَالْيَوْمِ الْآخِرِ

Reference: (Surah al-Tawbah: 18)

“The mosques of Allah are only maintained by one who believes in Allah and the Last Day.”
❀ The Messenger of Allah ﷺ said:
“Whoever builds a mosque for the pleasure of Allah, Allah builds for him a house like it in Paradise.”

Reference: Bukhari, Kitab al-Salah, Bab Man Bana Masjidan: 450 – Muslim: 533

❀ And in another place, the Messenger of Allah ﷺ said:
“Whoever builds a mosque the size of a bird’s nest, or even smaller, Allah will build a house for him in Paradise.”

Reference: Ibn Majah, Kitab al-Masajid wa al-Jama’ah, Bab Man Bana Lillahi Masjidan: 738 – Sahih

The scholars have explained its meaning as follows: at times a mosque needed work equal to the size of a bird’s nest and a person did that work, or several people together built a mosque and a person’s share came to the size of a nest or even less than that; for him too there is this virtue.

The Etiquettes of Building a Mosque:

❀ A mosque should be built solely for the pleasure of Allah.
The Messenger of Allah ﷺ said:

إن الله لا يقبل من العمل إلا ما كان له خالصا وابتغي به وجهه

“Indeed, Allah, the Most High, accepts only that deed which is purely for Him and which is done specifically for His pleasure.”

Reference: Nasa’i, Kitab al-Jihad, Bab Man Ghaza Yaltamisu al-Ajr wa al-Dhikr: 3142 – Sahih

❀ A mosque should not be built in a graveyard. If the graveyard belongs to polytheists and the like and is removed, then building a mosque is permissible, as the Messenger of Allah ﷺ did when building the Prophet’s Mosque.

Reference: Bukhari, Kitab al-Salah, Bab Hal Tunbashu Qubur Mushrikī al-Jahiliyyah: 428

❀ The Messenger of Allah ﷺ said:
“The Hour will not be established until people boast about decorating mosques (that is, decorating mosques without need is a sign of the Hour).”

Reference: Abu Dawud, Kitab al-Salah, Bab fi Bina’ al-Masajid: 449 – Hasan

❀ Umar (may Allah be pleased with him) ordered the building of the Prophet’s Mosque and said: “My aim is to protect the people from the rain; do not colour the mosques red or yellow, for that will put people into trial.”

Reference: Bukhari, Kitab al-Salah, Bab Bunyan al-Masjid, mu’allaqan, before hadith: 446

❀ The carpets and the like in a mosque should also be plain, so that the worshipper’s attention does not turn to them.
Aisha (may Allah be pleased with her) had hung a curtain in her house. The Messenger of Allah ﷺ said to her:
“Remove this curtain from in front of me, for its designs keep distracting my attention in prayer.”

Reference: Bukhari, Kitab al-Salah, Bab In Salla fi Thawb Musallab: 374

❀ It is not permissible to install clocks in mosques that chime every hour like a bell, because this resembles the bells of churches.
❀ Putting up lighting in a mosque on some festival and decorating it with flowers, flags and lamps is also a resemblance to churches, so it should be avoided.

Taking Care of the Mosque:

Taking care of the mosque and keeping it populated is a sign of a person’s faith.
❀ Allah, the Most High, said:

إِنَّمَا يَعْمُرُ مَسْجِدَ اللَّهِ مَنْ آمَنَ بِاللَّهِ وَالْيَوْمِ الْآخِرِ

Reference: (Surah al-Tawbah: 18)

“The mosques of Allah are only maintained by one who believes in Allah and the Last Day.”
❀ The mosque should be kept clean and perfumed.
Aisha (may Allah be pleased with her) says:

أمر رسول الله صلى الله عليه وسلم بناء المساجد فى الدور، وأن تنظف وتطيب

“The Messenger of Allah ﷺ commanded that mosques be built in neighbourhoods, that they be cleaned, and that perfume be provided in them.”

Reference: Abu Dawud, Kitab al-Salah, Bab Ittikhadh al-Masajid fi al-Dur: 455 – Ibn Majah: 758 – Sahih

Keeping the Mosque Populated:

❀ The Messenger of Allah ﷺ said:
Allah will shade seven types of people in His shade on the Day of Resurrection, when there will be no shade except His shade. And (among them) is a man whose heart is attached to the mosque.

Reference: بخاری, کتاب الأذان, باب من جلس في المسجد ينتظر الصلاة: 660 – مسلم: 1031

❀ And the Messenger of Allah ﷺ said:

بشر المشائين فى الظلم إلى المساجد بالنور التام يوم القيامة

“Give glad tidings to those who walk to the mosques in the darkness of the complete light on the Day of Resurrection.”

Reference: ابن ماجه, کتاب المساجد, باب المشي إلى الصلاة: 781 – صحیح

❀ In Sahih al-Bukhari, there is a saying of the Messenger ﷺ:

من غدا إلى المسجد وراح أعد الله له نزله من الجنة كلما غدا أو راح

“Whoever goes to the mosque repeatedly in the morning and evening, Allah will prepare for him hospitality in Paradise (that many times), every time he goes to the mosque in the morning or evening.”

Reference: بخاری, كتاب الأذان, باب فضل من غدا إلى المسجد: 662 – مسلم: 779

❀ And there is a saying of the Messenger ﷺ:
Whoever performs wudu properly at home and goes to the mosque with the intention of prayer alone, with nothing else causing him to go except the prayer, then with every step he takes he is raised one degree, or one sin of his is forgiven because of it. And as long as a person remains seated in the place where he prayed, the angels continue to pray for mercy for him, saying: “O Allah! Send Your mercy upon him. O Allah! Have mercy on him.” These supplications continue as long as he does not break his wudu and does not cause harm to anyone. And he ﷺ said: “For as long as a person is held back by the prayer, all that time is counted as being in prayer.”

Reference: بخاری, کتاب البيوع, باب ما ذكر في الأسواق: 2119 – مسلم: 649

❀ And the Messenger of Allah ﷺ said:

وما اجتمع قوم فى بيت من بيوت الله يتلون كتاب الله ويتدارسونه بينهم إلا نزلت عليهم السكينة وغشيتهم الرحمة وحفتهم الملائكة وذكرهم الله فيمن عنده

“As long as people sit in the mosques engaged in reciting the Quran and teaching it, tranquility (sakinah) continues to descend upon them (from Allah), mercy covers them, the angels surround them, and Allah mentions them favourably among those who are with Him.”

Reference: مسلم, كتاب الذكر والدعاء, باب فضل الاجتماع على تلاوة القرآن وعلى الذكر: 2699

❀ Allah the Exalted says:
Who is more unjust than the one who prevents people from worshipping Allah in the mosques and strives to bring about their ruin?

Reference: (سورۃ البقرة: 114)

The special virtue of some mosques:

Some mosques hold special importance for certain reasons, as follows:

1: Al-Masjid al-Haram (the House of Allah)

❀ Allah the Exalted says:
“Indeed, the first House established for the people is surely the one in Makkah, full of blessing and a guidance for the worlds.”

Reference: (سورۃ آل عمران: 96)

❀ The Messenger of Allah ﷺ said:

الحجر الأسود من الجنة

“The Black Stone has come from Paradise.”

Reference: Sunan al-Nasa’i, كتاب مناسك الحج, باب ذكر الحجر الأسود: 2938 – Sunan al-Tirmidhi: 877

❀ And the Messenger of Allah ﷺ said:

صلاة فى المسجد الحرام أفضل من مائة ألف صلاة فيما سواه

“One prayer in al-Masjid al-Haram is better than one hundred thousand prayers offered in other mosques.”

Reference: ابن ماجه, كتاب إقامة الصلوات, باب ما جاء في فضل الصلاة في المسجد الحرام: 1406 – صحیح

2: The Prophet’s Mosque (Masjid al-Nabawi)

❀ The Messenger of Allah ﷺ built it with his own blessed hands.

Reference: بخاری, کتاب الصلاة, باب هل تنبش قبور مشركي الجاهلية: 428 – مسلم: 524

❀ In this mosque, the portion from the blessed grave of the Messenger of Allah ﷺ to the pulpit of the Messenger ﷺ is “رَوْضَةٌ مِنْ رِيَاضِ الْجَنَّةِ” (a garden from the gardens of Paradise), and his ﷺ pulpit will be at the Pond of Kawthar.

Reference: بخاری, كتاب فضل الصلاة في مسجد مكة والمدينة, باب فضل ما بين القبر والمنبر: 1196 – مسلم: 1391

❀ The Messenger of Allah ﷺ said:

صلاة فى مسجدي هذا خير من ألف صلاة فيما سواه إلا المسجد الحرام

“One prayer in the Prophet’s Mosque is better than one thousand prayers offered in other mosques, except al-Masjid al-Haram.”

Reference: بخاری, كتاب فضل الصلاة في مسجد مكة والمدينة: 1190 – مسلم: 1394

3: Al-Masjid al-Aqsa (Bayt al-Maqdis)

❀ It is the second mosque to be built in the world after al-Masjid al-Haram.

Reference: بخاری, کتاب الأنبياء, باب ووهبنا لداود سليمن: 3425 – مسلم: 520

❀ This mosque is the first qiblah of the Muslims.

Reference: بخاری, کتاب الصلاة, باب التوجه نحو القبلة: 399 – مسلم: 525/17

❀ These are the only three mosques to which travelling merely with the intention of visiting is permissible, and visiting them also carries reward.
The Messenger of Allah ﷺ said:

لا تشد الرحال إلا إلى ثلاثة مساجد: المسجد الحرام ومسجدي هذا ومسجد الأقصى

“Do not travel with the intention of reward to visit any place other than the three mosques (al-Masjid al-Haram, the Prophet’s Mosque and al-Masjid al-Aqsa).”

Reference: بخاری, کتاب فضل الصلاة في مسجد مكة والمدينة: 1189 – مسلم: 1397

4: Masjid Quba

❀ In the history of Islam, this is the first mosque that the Messenger of Allah ﷺ built.

Reference: بخاری, کتاب مناقب الأنصار, باب هجرة النبي وأصحابه إلى المدينة: 3906

❀ The Messenger of Allah ﷺ said:

الصلاة فى مسجد قباء كعمرة

“One prayer in Masjid Quba is equal to an Umrah.”

Reference: Sunan al-Tirmidhi, کتاب الصلاة, باب ما جاء في الصلاة في مسجد قباء: 324

In Ibn Majah

Reference: (1412)

it is stated that whoever performs wudu at home, then comes to Masjid Quba and prays one prayer, he will receive the reward of one Umrah.
❀ The Messenger of Allah ﷺ himself used to go there every week to pray in it.

Reference: بخاری, کتاب فضل الصلاة في مسجد مكة والمدينة, باب إتيان مسجد قباء ماشيا وراكبا: 1194 – مسلم: 1399/516

5: Masjid Dhul-Hulayfah

❀ Masjid Dhul-Hulayfah is in a blessed valley.
The Messenger of Allah ﷺ said:

الليلة أتاني آت من ربي وهو بالعقيق أن صل فى هذا الوادي المبارك

“Tonight an angel came to me from my Lord, while he was in the valley of al-Aqiq, and said: ‘Pray in this blessed valley.'”

Reference: بخاری, كتاب الحرث والمزارعة: 2337

Etiquette of going to the mosque:

❀ A person should go to the mosque nearest to him, and should not go to distant mosques without a reasonable excuse, because the Messenger of Allah ﷺ said:
“A man should go to the mosque near him, and not keep searching for other mosques (without reason).”

Reference: Tabarani Kabir: 12/283, no. 13373 – its chain is hasan (good)

❀ One should not go to the mosque after eating something that causes a bad smell in the mouth. If one has eaten it, he should not go to the mosque until the smell is gone.
The Messenger of Allah ﷺ said:

من أكل ثوما أو بصلا فليعتزلنا أو فليعتزل مسجدنا أو ليقعد فى بيته حتى يذهب ريحها

“Whoever eats garlic or onion (and leek) should keep away from us, or from our mosques, or should sit in his house, until its smell is gone.”

Reference: Sahih al-Bukhari, Kitab al-Adhan, Bab ma ja’a fi al-thum al-nai’ wa al-basal wa al-kurrath: 855 – Sahih Muslim: 564/69

Before going to the mosque, one should take special care that no kind of bad smell is coming from his body or mouth. If a person’s profession is such that it produces a smell, for example fishing and the like, then if he is able, he should have a separate set of clothes made to wear for prayer, and he may also use a perfume that overcomes the bad smell. But smoking a cigarette or a hookah and then going to the mosque after smoking is absolutely forbidden; such a person is not permitted at all to enter the mosque.

Supplications for going to the mosque:

❀ The Messenger of Allah ﷺ recited this supplication on the way while going to the mosque for the morning prayer:

اللَّهُمَّ اجْعَلْ فِي قَلْبِي نُورًا وَفِي لِسَانِي نُورًا وَاجْعَلْ فِي سَمْعِي نُورًا وَاجْعَلْ فِي بَصَرِي نُورًا وَاجْعَلْ مِنْ خَلْفِي نُورًا وَمِنْ أَمَامِي نُورًا وَاجْعَلْ مِنْ فَوْقِي نُورًا وَمِنْ تَحْتِي نُورًا اللَّهُمَّ أَعْطِنِي نُورًا

“O Allah! Place light in my heart, place light in my tongue, place light in my hearing, place light in my sight, place light behind me and light in front of me, place light above me and light below me. O Allah! Grant me light.”

Reference: Sahih Muslim, Kitab Salat al-Musafirin, Bab Salat al-Nabi wa du’a’ihi bi-al-layl: 763/191 – Sahih al-Bukhari: 6316

❀ When entering the mosque, one should recite this supplication:

اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ

“O Allah! Open for me the doors of Your mercy.”

Reference: Sahih Muslim, Kitab Salat al-Musafirin, Bab ma yaqulu idha dakhala al-masjid: 713

❀ By reciting this supplication when entering the mosque, a person remains protected from Satan for the whole day:

أَعُوذُ بِاللَّهِ الْعَظِيمِ وَبِوَجْهِهِ الْكَرِيمِ وَسُلْطَانِهِ الْقَدِيمِ مِنَ الشَّيْطَانِ الرَّجِيمِ

“I seek refuge in Allah the Almighty, in His noble face, and in His eternal authority, from Satan the accursed.”

Reference: Abu Dawud, Kitab al-Salah, Bab ma yaqulu al-rajul: 466 – sahih (authentic)

❀ When leaving the mosque, one should recite this supplication:

اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ فَضْلِكَ

“O Allah! Indeed, I ask You for Your bounty.”

Reference: Sahih Muslim, Kitab Salat al-Musafirin, Bab ma yaqulu idha dakhala al-masjid: 713

❀ When entering the mosque, one should enter with the right foot first, and when leaving, one should take out the left foot first.

Reference: Sahih al-Bukhari, Kitab al-Salah, Bab al-tayamun fi dukhul al-masjid wa ghayrihi: 426

Those who are forbidden to enter the mosque:

❀ Allah, the Exalted, says:
“O you who believe! Do not approach the mosque when you are intoxicated, until you understand what you say, nor when you are in a state of janabah (major ritual impurity) (man or woman), until you have bathed, except when passing through it.”

Reference: (Surah al-Nisa’: 43)

❀ If a person in a state of janabah comes to the mosque out of forgetfulness, he should leave the mosque immediately when he remembers.
❀ If a man has a wet dream in the mosque, or a woman’s menstruation begins, he or she should leave the mosque immediately.
Abu Hurayrah (may Allah be pleased with him) said: Once the prayer was called and the rows were straightened, then the Messenger of Allah ﷺ came, and when he stood at his place of prayer, he remembered that he was in a state of janabah. So he ordered us to stay in our places and went away, then he bathed and came to us with drops of water dripping from his head, then he said the takbir and we prayed with him.

Reference: Sahih al-Bukhari, Kitab al-Ghusl, Bab idha dhakara al-junub fi al-masjid: 275 – Sahih Muslim: 605

❀ Whoever has eaten raw garlic, onion, leek (or cigarettes, hookah, or any foul-smelling thing) is not permitted to enter the mosque as long as a bad smell is coming from his mouth.

Those who are permitted to enter the mosque:

❀ Women may go to the mosque for worship and the like. (See the details under “Women’s congregation”)
❀ Children who have not reached puberty may come to the mosques.
Abu Qatadah (may Allah be pleased with him) said: “Indeed, the Messenger of Allah ﷺ led the prayer while he ﷺ was carrying Umamah bint Zaynab.”

Reference: Sahih al-Bukhari, Kitab al-Salah, Bab idha hamala jariyah: 516 – Sahih Muslim: 2543

❀ The entry of a disbeliever into the mosque is permissible when there is a need.
Abu Hurayrah (may Allah be pleased with him) said: “The Prophet ﷺ sent a cavalry force towards Najd, and they brought back a man from Banu Hanifah, whose name was Thumamah ibn Uthal, and they tied him to one of the pillars of the mosque.”

Reference: Sahih al-Bukhari, Kitab al-Salah, Bab dukhul al-mushrik al-masjid: 469

Actions forbidden in the mosque:

❀ Allah, the Exalted, says:
“Indeed the mosques belong to Allah, so do not call upon anyone along with Allah.”

Reference: (Surah al-Jinn: 18)

That is, only pure Islam should be spoken of in mosques. Inviting people to other than Allah in speeches and sermons, encouraging people to worship them and to visit their shrines, or reciting un-Islamic and shirk-laden naats, is absolutely forbidden.
❀ Announcing a lost item in the mosque.
❀ Buying and selling in the mosque.
A Companion of the Messenger of Allah ﷺ says: “Indeed the Messenger of Allah ﷺ forbade buying and selling in the mosque and announcing a lost item.”

Reference: Abu Dawud, Kitab al-Salah, Bab al-Tahalluq Yawm al-Jumu’ah: 1079 – Tirmidhi: 322 – hasan (good)

Making commercial announcements in mosques, or putting up such announcements on its walls, comes under the same ruling. If someone has found a lost item, it may be announced outside the door of the mosque and a notice about it may be put up.

Reference: Al-Mughni by Ibn Qudamah

❀ Sitting in gatherings in mosques and engaging in worldly talk.
The Messenger of Allah ﷺ said:

إنما هي لذكر الله عز وجل والصلاة وقراءة القرآن

“Mosques are only for the remembrance of Allah, the Mighty and Majestic, for prayer and for the recitation of the Qur’an.”

Reference: Muslim, Kitab al-Taharah, Bab Wujub Ghusl al-Bawl: 285

Nothing should be brought into the mosque that causes harm to people.
The Messenger of Allah ﷺ said:
“Whoever passes through our mosques or markets carrying something with a point (a sword, arrow, knife, spear) must hold it by its point, lest he harm any Muslim.”

Reference: Bukhari, Kitab al-Salah, Bab al-Murur fi al-Masjid: 452 – Muslim: 2615

❀ Interlacing the fingers of the hands in the mosque is forbidden.

Reference: Musnad Ahmad: 242/4, no. 18115 – hasan (good)

❀ However, tashbik (interlacing the fingers) is permissible when there is a need. As this act is established from the Messenger of Allah ﷺ.

Reference: Bukhari, Kitab al-Salah, Bab Tashbik al-Asabi’ fi al-Masjid: 481, 482

❀ Spitting in the mosque is a sin.
The Messenger of Allah ﷺ said:
“Spitting in the mosque is a sin, and its expiation is to bury it (or to clean it).”

Reference: Bukhari, Kitab al-Salah, Bab Kaffarat al-Buzaq fi al-Masjid: 415 – Muslim: 552

Permissible acts in the mosque:

❀ There is no harm if someone sleeps in the mosque, because Sayyiduna Abdullah ibn Umar (may Allah be pleased with them both) says that he used to sleep in the Prophet’s Mosque, and he was young and unmarried.

Reference: Bukhari, Kitab al-Salah, Bab Nawm al-Rijal fi al-Masjid: 440 – Muslim: 2479

❀ If there is a need, a woman may also sleep in the mosque.
Sayyidah Aishah (may Allah be pleased with her) says that a black woman of the Arabs became Muslim, so a tent was set up for her in the mosque for her to live in.

Reference: Bukhari, Kitab Manaqib al-Ansar, Bab Ayyam al-Jahiliyyah: 3835

❀ However, if a wet dream or menstruation begins in the mosque, one must leave immediately.
❀ Reciting hamd, naat and jihad anthems and the like is permissible.

Reference: Bukhari, Kitab Bad’ al-Khalq, Bab Dhikr al-Mala’ikah: 3212 – Muslim: 2485

❀ Only religious activities, that is, remembrance, prayer and teaching and learning the Qur’an, should take place in the mosque.
The Messenger of Allah ﷺ said:
“Mosques are only for the remembrance of Allah, the Exalted, for prayer and for the recitation of the Qur’an.”

Reference: Muslim, Kitab al-Taharah: 661

And he ﷺ said:
“Use the mosques only for those purposes for which they were built.”

Reference: Muslim, Kitab al-Masajid, Bab al-Nahy ‘an Nashd al-Dallah fi al-Masjid: 569

Etiquette of sitting in the mosque:

The Messenger of Allah ﷺ forbade a man from reserving a place for himself in the mosque, as a camel does, so that he must sit there in every circumstance.

Reference: Abu Dawud, Kitab al-Salah, Bab Salat man la yuqim sulbahu fi al-ruku’ wa al-sujud: 862 – Nasa’i: 1113

❀ One should pray two rak’ahs (Tahiyyat al-Masjid) in the mosque before sitting.
The Messenger of Allah ﷺ said:

إذا دخل أحدكم المسجد فليركع ركعتين قبل أن يجلس

“When any of you enters the mosque, he should pray two rak’ahs before he sits.”

Reference: Bukhari, Kitab al-Salah, Bab idha dakhala al-masjid fa-l-yarka’ rak’atayn: 444 – Muslim: 714

❀ When going into the mosque, the etiquette of a gathering should be observed there, which is as follows:
➊ When he arrives there, he should greet the people with salam.

Reference: Bukhari, Kitab al-Isti’dhan: 6254 – Muslim: 1798

If the sermon has begun, he should greet those sitting around him with salam in a low voice.
➋ He should sit wherever he finds space, and should not step over the necks of people to go forward.

Reference: Abu Dawud, Kitab al-Salah, Bab Takhatti riqab al-nas yawm al-jumu’ah: 1118 – Nasa’i: 1400

➌ He should not squeeze in and sit between two men.

Reference: Bukhari, Kitab al-Jumu’ah: 910

➍ He should not make someone get up and then sit in his place.

Reference: Bukhari, Kitab al-Jumu’ah: 911 – Muslim: 2177

➎ If a person gets up from a gathering for some need and then returns, he has more right to that place.

Reference: Muslim, Kitab al-Salam: 2179

➏ He should avoid all such actions and habits that cause discomfort to others.

Reference: Bukhari, Kitab al-Iman: 10 – Muslim: 40

➐ One should not talk in a loud voice in the mosque.
Umar (may Allah be pleased with him) saw two men talking loudly in the mosque; they were residents of Ta’if. He said: “If you were from the people of Madinah, I would certainly have punished you. You raise your voices in the mosque of the Messenger of Allah ﷺ.”

Reference: Bukhari, Kitab al-Salah, Bab Raf’ al-sawt fi al-masajid: 470

➑ He should not sit idle in the mosque, but should keep reciting the Quran, engaging in dhikr and supplication, and sending blessings upon the Prophet ﷺ.
➒ If someone feels drowsy during the Friday sermon, he should change his place.

Reference: Tirmidhi, Kitab al-Jumu’ah: 526

➓ At the end of the gathering, he should recite the supplication of the expiation of the gathering; this supplication will be an expiation for the sins committed in the gathering:

سُبْحَانَكَ اللَّهُمَّ وَبِحَمْدِكَ أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا أَنْتَ أَسْتَغْفِرُكَ وَأَتُوبُ إِلَيْكَ

“O my Allah! You are free of all imperfection, and with Your praise. I bear witness that there is no deity except You. I seek Your forgiveness and I repent to You.”

Reference: Tirmidhi, Kitab al-Da’awat: 3433 – sahih (authentic)

Places of prayer other than the mosque:

❀ The Messenger of Allah ﷺ said:
“The whole earth has been made a mosque and pure for me, so whichever person of my Ummah finds the time of prayer has arrived, let him pray right there.”

Reference: Bukhari, Kitab al-Salah: 438 – Muslim: 521

Therefore, it is permissible to pray in all places other than mosques, except for a few places.

Where praying is forbidden:

❀ Now we will mention the places where praying is forbidden:
➊ A room on whose walls there are pictures of living beings, or where there are statues of them.
❀ The Messenger of Allah ﷺ said:
“Among those people (the Jews and Christians), when a righteous man died, they would build a place of worship over his grave and make those pictures in it. Those people are the worst of creation in the sight of Allah.”

Reference: Bukhari, Kitab al-Salah, Bab al-Salah fi al-bi’ah: 434 – Muslim: 528

➋ A place where urine or feces is passed, or where a ritual bath is taken, and in a graveyard.
The Messenger of Allah ﷺ said:

الأرض كلها مسجد إلا الحمام والمقبرة

The whole earth is a mosque, except the bathhouse and the graveyard.

Reference: Tirmidhi, Kitab al-Salah, Bab Ma ja’a anna al-ard etc.: 317

➌ Likewise, one should not pray in a place of garbage and other filth, because there is impurity there.
➍ In the pens of camels. A man asked the Messenger of Allah ﷺ: “May I pray in the sheep pens?” He ﷺ said: “Yes!” Then he asked: “May I pray in the camel pens?” He ﷺ said: “No.”

Reference: Muslim, Kitab al-Hayd, Bab al-Wudu’ min luhum al-ibil: 360

➎ It is not permissible to pray facing a grave. The Messenger of Allah ﷺ said:

لا تصلوا إلى القبور

Do not pray facing the graves.

Reference: Muslim, Kitab al-Jana’iz, Bab al-Nahy ‘an al-julus etc.: 972/98

Therefore, it is not permissible to build graves in mosques, and one should avoid praying in mosques in which there are graves.
➏ Praying is also not permissible in places of punishment. The Messenger of Allah ﷺ said: “Do not go to the places where punishment descended, except weeping; if you cannot go weeping, then do not go there at all, lest the punishment that came upon them come upon you as well.”

Reference: Bukhari, Kitab al-Salah, Bab al-Salah fi mawadi’ al-khasf wa al-‘adhab: 433

Ali (may Allah be pleased with him) reported that he used to consider it disliked to pray in Babylon, where the earth had swallowed (its people).

Reference: Bukhari, Kitab al-Salah, Bab al-Salah fi mawadi’ al-khasf wa al-‘adhab, mu’allaq before hadith: 433

Places where praying is permissible:

❀ Now we will mention the places where some people consider prayer disliked or impermissible, but which are permissible according to the Shariah:
➊ It is permissible to pray on cushions, thick mats and the like.
Umm al-Darda’ (may Allah be pleased with her) said:

ما أبالي لو صليت على خمس طنافس

“I do not care if I gather five mats together and pray on them.”

Reference: Al-Tarikh al-Kabir lil-Bukhari, Bab Khulayd Mawla Abi al-Darda’: 669

➋ It is permissible to pray on a bed, provided the bed is clean. Aisha (may Allah be pleased with her) said: The Messenger of Allah ﷺ would pray while Aisha was lying on the bed between him and the qibla.

Reference: Bukhari, Kitab al-Salah, Bab al-Salah ala al-Firash: 383. Muslim: 512

➌ It is permissible to pray on a wooden platform and the like (a wooden prayer platform like a cot, raised a foot or two above the ground). Once the Messenger of Allah ﷺ led the prayer while standing on the minbar.

Reference: Bukhari, Kitab al-Salah, Bab al-Salah ala al-Sutuh wa al-Minbar wa al-Khashab: 377. Abu Dawud: 597-598