Yes — walking in front of someone who is praying is a sin, and the scholars describe it as a serious one. The Prophet ﷺ warned that the one who passes in front of a praying person would rather stand still for a very long time than do it. The sin attaches to the one who walks past, not to the one praying, and it applies whether the person is praying behind a barrier or not.
What the warning means
The prohibition rests on a well-known hadith reported by Abu Juhaym رضي الله عنه. The Prophet ﷺ said:
"If the one who passes in front of a praying person knew what was upon him, it would be better for him to stand for forty than to pass in front of him."— Sahih al-Bukhari 510; Sahih Muslim 507
The narrator Abu al-Nadr said he did not know whether the Prophet ﷺ meant forty days, forty months or forty years. Shaykh Ibn Baz notes that some narrations specify "forty years," and that this shows the passing is not permitted — neither in front of the praying person nor between him and his barrier (sutrah).
Shaykh Salih al-Fawzan describes the act as "prohibited, severely prohibited," and points to a second hadith in which the Prophet ﷺ instructed the praying person to prevent anyone from passing and, if the person insists, to fight him off, saying "he is only a devil." That instruction, he argues, is itself proof of the prohibition.
Where exactly the sin falls
The prohibition is not limited to the space directly in front of the face. It covers two zones:
- Between the praying person and his barrier: if he has placed something in front of him — a wall, a pillar, a chair, a stick — no one may pass between him and it.
- Close in front of him when he has no barrier: the Hanbali texts set this at three cubits or less (adhru', roughly forearm-lengths). Beyond that distance, the passing does not carry the same ruling.
The Permanent Committee (fatwa 11285) put the same point concisely: passing in front of a praying person does not invalidate his prayer, but if you pass between him and his barrier, or close to him when he has no barrier, you sin. If you pass behind the barrier, or far from him when he has none, you do not sin. Their evidence is the hadith:
"When one of you places in front of him something like the back of a saddle, let him pray and not care who passes behind that."— Sahih Muslim 499
When passing is allowed
The scholars carve out real exceptions, because the sin is tied to there being an alternative route.
- When you have no other way: if the praying person has stationed himself in a public thoroughfare that people must use, there is no sin in passing. Ibn Rajab reports that the Hanbalis stated this explicitly — the one who prays there is the one at fault, "so he has no sanctity" in that spot.
- In the Sacred Mosque and crowded places: Shaykh Ibn Baz holds that in al-Masjid al-Haram passing in front of a praying person is not prohibited, and nothing passing breaks the prayer there, because crowding is expected and avoiding it is difficult. He extends the same reasoning to the Prophet's Mosque and any mosque where crowding is severe, citing the principle "so fear Allah as much as you are able" (Qur'an 64:16).
- Behind the barrier: passing behind the sutrah is permitted, as the hadith above states directly.
Shaykh Ibn Uthaymeen adds a related point: a person should not pray in a place people need to walk through, such as the path of tawaf, and then expect them to avoid him — the right there belongs to those passing.
Does it break the prayer?
Passing in front of someone does not invalidate their prayer — but it does reduce its reward. Shaykh Ibn Baz states that a person's passing diminishes the prayer's reward, and that the praying person should prevent it when he can.
A separate question is which things actually break the prayer if they pass. On the position Shaykh Ibn Baz and Shaykh Ibn Uthaymeen both call the correct one, three things invalidate it when they pass close (within three cubits) or between the person and his barrier:
| Passing thing | Effect on the prayer |
|---|---|
| A grown woman | Breaks it |
| A donkey | Breaks it |
| A black dog | Breaks it |
| A man, a child, a non-black dog, a cat, other animals | Does not break it, but passing is still disliked |
The evidence is the hadith of Abu Dharr رضي الله عنه:
"The prayer of a Muslim man is cut off if there is not in front of him something like the back of a saddle: a woman, a donkey, and a black dog."— Sahih Muslim 510
When asked what distinguishes the black dog, the Prophet ﷺ replied that the black dog is a devil.
A real disagreement
The schools differ on whether these three actually invalidate the prayer or only diminish its reward.
- The view Shaykh Ibn Baz and Shaykh Ibn Uthaymeen prefer, following Ibn Taymiyyah, is that they invalidate it — and if it was an obligatory prayer, it must be repeated. The Hanbali school's relied-upon position limits this to the black dog.
- The majority hold that they cut off only its perfection, not the prayer itself. Shaykh Ibn Baz acknowledges this view and then states plainly that the correct position is that it invalidates.
- The Malikis, as reported by Ibn Abd al-Barr, hold that nothing passing in front breaks the prayer at all — only things that spoil it, like ritual impurity. He cites the hadith of Umm Salamah رضي الله عنها, where the Prophet ﷺ did not repeat his prayer after a child passed in front of him.
Ibn Rajab also records a related difference about shared blame: al-Qurtubi reported from the Malikis that if a person prays where he cannot be safe from people passing, both he and the one passing share the sin. Some Shafi'is said the same. Ibn Abd al-Barr held the sin on the one passing is greater than on the one who lets him pass, and that both are disobedient if they knew of the prohibition.
What to do in practice
- If you are walking: do not cross in front of someone praying. Wait, or pass behind his barrier, or go around.
- If you are praying: place something in front of you — a wall, a pillar, a chair, a stick. If someone tries to cross, gesture him back; the Prophet ﷺ instructed this.
- If you are in a crowd or the Haram: there is no blame in passing, and no blame on the one praying.
Key takeaways
- Passing in front of a praying person is a serious sin, established by an authentic hadith warning of forty (days, months or years) of standing being better than passing.
- The sin applies between the person and his barrier, and within three cubits in front of him when he has no barrier.
- Passing behind the barrier, or far away when there is none, carries no sin.
- In the Sacred Mosque and genuinely crowded places, passing is permitted because avoiding it is not possible.
- Passing does not invalidate the prayer, though it reduces its reward; only a grown woman, a donkey or a black dog invalidate it — and on that last point the schools differ.
And Allah knows best.
Sources6
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.