If someone fears that a person might pass in front of them while praying, it is mustahabb (recommended) to place a sutra [1] in front of them.
The sutra should be at least half a meter long and not thinner than a finger. It is sunnah to stand close to the sutra to prevent anyone from passing in front. The sutra should be placed slightly to the right or left, not directly in front. If nothing is available, one may draw a line on the ground, either vertically or in the shape of a crescent moon [2].
Regarding this, Abu Hurayrah (may Allah be pleased with him) narrated: "If any of you prays, let him place something in front of him. If he does not have a stick to fix in the ground, let him draw a line. If he does so, it will not harm him if someone passes in front of him." [3]
Since it is best to remain still and avoid unnecessary movements during prayer, it is mustahabb not to stop someone passing in front of you. If one wishes to stop them, they may gesture with their hand or say a tasbih such as "Subhan Allah". Doing both at once is makruh (disliked).
Also, if a man is praying and someone is about to pass in front of him during a prayer recited aloud, he may raise his voice in reciting Qur'an to signal them not to pass. A woman may gesture with her hand or clap her right palm against her left at chest level to signal.
It is forbidden to pass in front of someone praying without necessity. The Prophet (ﷺ) said: "If the one who passes in front of a person praying knew the sin he incurs, he would rather wait for forty than pass in front of him." [4] The narrator said: "I do not know whether he meant forty days, forty months, or forty years."
In any case, passing in front of someone praying without a valid reason is a sin. This applies in small mosques or similar places where there is no sutra in front of the person praying. In large mosques or open areas, if someone passes beyond the place where the person praying would make sujud and is out of their line of sight, it is not a sin [5].
The sutra placed in front of the imam suffices for the entire congregation. Those following the imam do not need to place their own sutra.
Some jurists have clarified who bears the sin if someone passes in front of a person praying:
If the person praying does not place a sutra and prays in a walkway, and someone is forced to pass in front of them, the sin is on the person praying;
If the person praying places a sutra and someone passes between the sutra and the person praying without necessity, the passer is at fault;
If the person praying does not place a sutra, and someone passes in front of them even though there is another way, both are at fault [6].
Passing in front of someone praying by an animal such as a dog or cat, or by a person, does not invalidate the prayer.
In summary, if there is a possibility that people might pass in front of you while praying, you should place a sutra and pray in a place that does not obstruct others. Others should also be careful not to harm their fellow Muslim's prayer by passing in front of them.
Sharia and Fatwa Department
[1] An object placed in front of a person praying to serve as a barrier.
[2] Hashiyat al-Tahtawi.
[3] Imam Ahmad narration.
[4] Imam Bukhari narration.
[5] Al-Fatawa al-Tatarkhaniyya, 1/630.
[6] Al-Fiqh al-Wadih
This content was drafted with AI assistance and reviewed by an editor.