Rafiq Ask Rafiq

Is it allowed to pray wearing shoes?

Praying in shoes is permitted, and in fact a sunnah — the Prophet ﷺ prayed in his sandals and instructed his Companions to do likewise. The condition the scholars attach is purity: you check the shoes before entering, and if there is filth on them you wipe it off. In a carpeted mosque, both Ibn Baz and Ibn Uthaymeen advise leaving them at the door instead, to protect the furnishings and avoid disturbing other worshippers.

Why the scholars call it a sunnah

The practice is established from the Prophet ﷺ himself, and the reports are sound. Anas ibn Malik رضي الله عنه was asked directly whether the Prophet ﷺ prayed in his sandals, and he answered yes — this is the narration Ibn Baz cites from the two Sahihs. Ibn Uthaymeen adds that the Prophet ﷺ not only did it but commanded it, as a deliberate difference from the Jews, who did not pray in their shoes or leather socks.

The instruction that follows from this is practical rather than ceremonial. When the Prophet ﷺ once removed his sandals during prayer, the Companions behind him removed theirs too. After the prayer he asked them why they had done that, and explained:

"Jibril came to me and informed me that there was filth on them, so I removed them. So when one of you comes to the mosque, let him look; if he sees any harm on his sandals, let him wipe it and then pray in them."— Sunan Abu Dawud 650, from Abu Sa'id al-Khudri

So the sunnah is not simply "wear shoes" — it is "wear them clean." Ibn Uthaymeen notes that a person should not pray in them until he has looked at them, and if he finds something harmful he rubs it against the ground until it is gone.

What makes it permissible

Two conditions carry the ruling, and both come from the same evidence.

  • Purity of the shoe: it must be free of filth or anything offensive. Ibn Baz explains that if there is impurity on them, or mud and the like that would soil the carpet, the person should not pray in them or enter the mosque wearing them — he should leave them at the door.
  • No harm to others: the shoe must not disturb the people beside you or damage the mosque. Ibn Uthaymeen states this plainly: if praying in them causes harm to those next to you, do not do it, because harm should not be brought about for the sake of a sunnah.

When the carpet changes the answer

This is where the two scholars give their most detailed guidance, and it is the situation most readers actually face. Ibn Baz sets out the distinction clearly:

SituationRuling
Mosque with gravel or sand flooring, shoes cleanPraying in them is better
Carpeted mosque, shoes clean, no harm causedPermitted; leaving them at the door is preferable
Shoes carrying filth or mud that would soil the carpetDo not pray in them or walk in with them

His reasoning is that most people are careless — they walk in without checking their shoes, filth accumulates in the carpet, and some worshippers are put off attending the mosque altogether. Protecting the congregation from that outweighs the sunnah in that particular setting. Ibn Uthaymeen makes the same point and adds a useful observation: the sunnah can still be performed at home, where praying in your shoes brings you the reward of following the Prophet ﷺ without any of the harm.

A practice that is not the sunnah

Ibn Uthaymeen points out a common mistake. Some people walk into the mosque wearing their shoes without checking them, then remove them when they reach the prayer spot. This contradicts the sunnah from two directions at once: they entered without looking at their shoes, and they did not actually pray in them. The correct order is to check before entering, clean them if needed, and then either pray in them or leave them at the door from the outset.

If someone tells you your prayer is invalid

Ibn Baz addresses this directly and is unambiguous: the claim that prayer in shoes is invalid is a statement made out of ignorance, with no basis — provided the shoes are pure. The prayer is valid, and the practice is not merely allowed but recommended.

In practice

  1. Before entering the mosque, look at your shoes.
  2. If you find filth, rub it against the ground until no trace remains — Ibn Baz notes that if the filth has substance, like dung, it must be rubbed off completely; if it leaves no trace, wiping is enough.
  3. In a carpeted mosque, leave them at the door or place them between your feet, and pray barefoot — this is what both scholars recommend for the sake of the congregation.
  4. In a mosque with gravel or sand, pray in them if they are clean.
  5. If you want to keep the sunnah without any risk of harm, pray in your shoes at home.

Key takeaways

  • Praying in clean shoes is a confirmed sunnah, established from the Prophet ﷺ and commanded as a difference from the Jews.
  • The condition is that the shoes be free of filth — check them before entering the mosque, not after.
  • In a carpeted mosque, Ibn Baz and Ibn Uthaymeen both prefer leaving them at the door, to protect the furnishings and avoid putting people off attending.
  • Walking in with shoes unchecked and then removing them at the prayer spot contradicts the sunnah rather than fulfilling it.
  • Anyone who says prayer in shoes is invalid is speaking without knowledge; the prayer is sound if the shoes are pure.

Further reading

  • Ibn Baz, Majmu' al-Fatawa wa al-Maqalat
  • Ibn Uthaymeen, Fatawa Nur 'ala al-Darb
  • Ibn Uthaymeen, Fatawa al-Salah

And Allah knows best.

Sources2
Ibn Uthaymeen fatwa · حكم الصلاة بالنعال
Ibn Baz fatwa 20488 · حكم الصلاة بالحذاء في المساجد

Answered by Rafiq AI from the Qur'an, the hadith and the works of the scholars ·

This is a guide to what the scholars have said, not a fatwa. For your own situation, ask a qualified scholar who can hear the details.

Have a question of your own?

Ask Rafiq — it's free