The mosque is the house of Allah and the purest and most sacred land on the face of the earth. A person who has not performed wudu may enter the mosque, but staying there is forbidden for one in a state of janabah, and for a menstruating woman and a woman in postnatal bleeding. The reason is the sanctity of the mosque. Despite this, there is no harm in entering the mosque wearing shoes and in praying in shoes, provided the shoes are free and clean of impurity.
The noble person of the Prophet ﷺ is a model for us, as Allah, the Mighty and Majestic, says:
لَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللَّهِ أُسْوَةٌ حَسَنَةٌ(الاحزاب:21)
Translation: Indeed, for you in the Messenger of Allah ﷺ there is an excellent example.
So the one who is our model and guide, it is established from his words and actions that he himself prayed in shoes and also commanded the noble Companions to pray in shoes. I will first present the hadith of his words, then I will present the hadith of his actions.
The hadith of his words:
Shaddad bin Aws (may Allah be pleased with him) says that the Messenger of Allah ﷺ said:
خالِفوا اليَهودَ فإنَّهم لا يصلُّونَ في نعالِهِم ولا خفافِهِم( صحيح أبي داود:652)
Translation: Oppose the Jews, for they do not pray in their shoes nor in their leather socks.
The hadith of his action: Abdullah bin Amr bin al-As (may Allah be pleased with them both) says:
رأيتُ رسولَ اللَّهِ صلَّى اللَّهُ عليهِ وسلَّمَ يصلِّي حافيًا ومَنتعِلًا( صحيح أبي داود:653)
Translation: I saw the Messenger of Allah ﷺ pray barefoot and also wearing shoes.
Both of these hadiths are sahih (authentic), and from both kinds of hadiths it is established that the Messenger of Allah ﷺ himself prayed in shoes and also commanded praying in shoes.
There are other evidences on this subject as well, but these two evidences are sufficient for the purpose of argument and for understanding the issue itself. However, it will be useful to mention one more evidence, which is quite well known and is even clearer on this subject in terms of understanding.
Abu Sa’id al-Khudri (may Allah be pleased with him) says:
بينَما رسولُ اللَّهِ صلَّى اللَّهُ عليهِ وسلَّمَ يصلِّي بأصحابِهِ إذ خلعَ نعليهِ فوضعَهُما عن يسارِهِ فلمَّا رأى ذلِكَ القومُ ألقوا نعالَهُم فلمَّا قضى رسولُ اللَّهِ صلَّى اللَّهُ عليهِ وسلَّمَ صلاتَهُ قالَ ما حملَكُم علَى إلقاءِ نعالِكُم قالوا رأيناكَ ألقيتَ نعليكَ فألقينا نعالَنا فقالَ رسولُ اللَّهِ صلَّى اللَّهُ عليهِ وسلَّمَ إنَّ جبريلَ صلَّى اللَّهُ عليهِ وسلَّمَ أتاني فأخبرَني أنَّ فيهِما قذرًا – أو قالَ أذًى – وقالَ إذا جاءَ أحدُكُم إلى المسجدِ فلينظُر فإن رأى في نعليهِ قذرًا أو أذًى فليمسَحهُ وليصلِّ فيهِما(صحيح أبي داود:650)
Translation: The Messenger of Allah ﷺ was praying with the noble Companions when he suddenly took off his shoes and placed them on his left side. When the people saw this, they also took off their shoes (in following him ﷺ). When the Messenger of Allah ﷺ finished the prayer, he said: “Why did you take off your shoes?” They said: We saw you taking off your shoes, so we also took off our shoes. Upon this the Messenger of Allah ﷺ said: “Jibril (peace be upon him) came to me and told me that there was impurity on your shoes.” The narrator is unsure whether he said «قذرا» or «أذى». And he said: “When any of you comes to the mosque, let him look at his shoes; if he sees impurity on them, let him rub it off on the ground and pray in them.”
Keeping all these hadiths in view, it becomes easy to say that one may enter the mosque wearing shoes and may pray in the mosque wearing shoes, because the prayer in which the Prophet ﷺ led the Companions while wearing shoes was a congregational prayer in the mosque. This clearly shows that we may enter the mosque wearing shoes.
The Masjid al-Haram is also a mosque. Since he ﷺ entered the Prophet’s Mosque wearing shoes, we too may enter the Prophet’s Mosque, the Masjid al-Haram and the other mosques of the world wearing shoes; there is no legal objection to this.
Here this issue should also be made clear: just as one may enter the Masjid al-Haram wearing shoes and pray there in shoes, in the same way one may also perform tawaf in shoes and also perform sa’i; it is permissible. However, there is the important matter of cleanliness, because of which entering the Masjid al-Haram wearing shoes is nowadays inappropriate. This point is further clarified below.
A few more points about tawaf and sa’i in shoes
٭ To increase the knowledge of those performing Umrah, I want to state first that men should not wear shoes in the state of ihram, nor leather socks, but should use sandals, while women may wear leather socks and shoes in the state of ihram. In voluntary tawaf, men may also wear shoes, because there is no restriction of ihram there.
٭ Entering the mosque wearing shoes or praying in shoes does not mean that you must go to the mosque wearing shoes or must pray in shoes; rather, it means that entering the mosque wearing shoes is permissible and praying wearing shoes is permissible. Likewise, it is also not necessary to perform tawaf and sa’i in shoes; perform tawaf and sa’i barefoot as people generally do. However, if someone performs tawaf and sa’i in shoes, it is permissible, but in view of cleanliness, tawaf and sa’i should be performed barefoot.
٭ In the time of the Messenger too, people would have entered the Masjid al-Haram wearing shoes and sandals, because the teachings of the Prophet allow this; moreover, in the time of the Messenger, shoes and sandals would also have been worn during tawaf and sa’i, and there is no doubt in this either.
٭ Since the mosques of earlier times had floors of earth, no one ever considered it objectionable to enter them wearing shoes, but today’s mosques are adorned with marble and carpets, so we need to consider this aspect.
٭ There is no doubt that a large number of people are assigned to cleaning in the Masjid al-Haram, because of which the Masjid al-Haram always appears shining and gleaming. In such a case, out of regard for cleanliness, we should not enter the Masjid al-Haram wearing shoes and sandals.
٭ The shoes and sandals that we wear from outside and also take into the bathroom will certainly be soaked with dust, dirt and water. In such a case the carpet and marble will become dirty, and the cleaning workers will have to face great difficulty.
٭ In other words, the issue is not one of permissibility or impermissibility, but of cleanliness. In view of the cleanliness of the Masjid al-Haram, do not enter it in shoes and sandals. That is, do not come into the mosque wearing the shoes and sandals that you have used outside the mosque, but take them off at the door and enter barefoot, pray barefoot, and perform tawaf and sa’i barefoot.
٭ The Masjid al-Haram is broadcast live on video, and everyone, Muslims and disbelievers alike, watches its scenes. The sight of people entering the Masjid al-Haram with their shoes and sandals will seem bad to outsiders, and even those Muslims who are ignorant and unaware of the religion take a wrong impression. For this reason too, one should not enter the Masjid al-Haram wearing shoes.
Summary of the discussion:
The summary of the whole discussion is this: in the Masjid al-Haram and all the mosques of the world whose floors are not of earth but have been adorned with stone, tiles and carpets, one should not enter wearing shoes and sandals. This ruling is in view of cleanliness; otherwise, there is no harm in going into mosques that are still made of earth while wearing shoes, on the condition that they are clean, as is known from the several hadiths above.