Before You Pray: The Conditions

In short
- Some things must be in place before you pray, and stay in place until you finish. Scholars call them the conditions. If one is missing, the prayer does not count.
- They are: you are Muslim and of sound mind, you have wudu, your body, clothes and prayer spot are free of najasa (dirt that Islam counts as unclean), the awrah is covered, you face the qibla, the prayer time has started, and you have the intention.
- Men cover from the navel to the knee. Women cover the whole body except the face and hands. You must not be able to see the skin through the clothes.
- Do your best to find the qibla. If you tried your best and later learn you were a little off, most scholars say your prayer still counts.
- The intention is in your heart. You do not need to say it out loud.
What does "condition" mean here?
Before you start a prayer, some things must already be in place. Scholars call these the shurut of salah, which means its conditions. One of them is called a shart.
A condition is not the same as a rukn (a pillar, a main part of the prayer):
- A condition is outside the prayer. It comes before you start, and it must last until you finish. Wudu is one example.
- A pillar is a part inside the prayer, like ruku (bowing) or sujud (putting your forehead on the ground).
Both matter just as much. If a condition or a pillar is missing, the prayer does not count, and you pray it again.
Think of a house. The pillars are the walls and roof. The conditions are the ground it stands on. Without either one, there is no house.
What is on the list?
| Condition | What it means |
|---|---|
| 1. Muslim, sound mind, age | The prayer is for a Muslim who understands what they are doing |
| 2. Wudu (and ghusl) | You have wudu, and you have done ghusl if you needed it |
| 3. Free of najasa | No najasa on your body, clothes or prayer spot |
| 4. Covering the awrah | The parts of the body you must cover are covered |
| 5. Facing the qibla | You face the Kabah in Makkah |
| 6. The time has started | The time for that prayer has begun and has not ended |
| 7. Intention | In your heart, you mean to pray this prayer |
1. Who has to pray?
Salah is worship, so it only counts from a Muslim. A new Muslim starts praying from the day they accept Islam. They do not make up prayers from before that.
The person must also have a sound mind. Someone who has lost their mind does not have to pray1.
Salah becomes a must at puberty. But a younger child's prayer still counts and brings reward, once the child is old enough to understand it. Nabi ﷺ told parents to teach children to pray at seven2. See Why salah, who must pray, and the times for more.
Sources for this section
- 1(Abu Dawud 4403)
- 2(Abu Dawud 495)
2. Do you need wudu to pray?
Yes. After you use the toilet, pass wind or fall into a deep sleep, you lose your wudu. Scholars call this state hadath. It is not dirt you can see. Wudu (washing for prayer) takes it away. After intimacy, or when a period ends, you need ghusl (a full bath) instead.
Allah tells us to wash before prayer3. Nabi ﷺ said: no prayer is accepted without being clean4. He also said: if someone has lost their wudu, their prayer is not accepted until they make wudu again5. And: the key to salah is being clean6.
- No water, or you cannot use it because you are ill? Do tayammum (wiping with clean earth) instead7.
- You lose your wudu during the prayer? The prayer stops counting. Leave, make wudu, and pray again.
- You prayed, then remembered you had no wudu? Pray it again. All scholars agree on this. If you were the imam, you pray again. Most scholars say the people behind you do not. Hanafis say they pray again too.
- You have wudu and are only not sure if you lost it? You still have it. Being unsure does not break wudu.
To learn wudu step by step, see our Wudu guide.
Sources for this section
- 3(Quran 5:6)
- 4(Muslim 224)
- 5(Bukhari 135)
- 6(Tirmidhi 3)
- 7(Quran 5:6)
3. Must your body, clothes and place be clean?
Najasa means dirt that Islam counts as unclean. The main kinds are urine, stool, blood that flows, vomit, and the urine and dung of animals whose meat we do not eat.
Allah says: and keep your clothes clean8. Before you pray, three things must be free of najasa:
- Your body. For example, after using the toilet, clean yourself well.
- Your clothes. Wash off any najasa. A woman asked Nabi ﷺ about period blood on her clothes. He said: rub it, wash it with water, and then she can pray in it9.
- Your prayer spot. The place where you stand, kneel and put your head down. Nabi ﷺ said the whole earth was made a place to pray for his ummah10, except the graveyard and the bathroom11.
What makes it easier?
- Treat everything as clean until you know it is not. Not sure if something touched najasa? Then it is clean. Do not let doubts take over.
- A baby boy's urine. If a baby boy who only drinks milk wets your clothes, sprinkle water over the spot. Nabi ﷺ did this when a baby boy wet his clothes12. Shafi'is and Hanbalis follow this. For a baby girl, they say wash it. Hanafis and Malikis say wash it for both.
- Tiny amounts that are hard to avoid are forgiven, like a small speck of blood. Hanafis forgive najasa on your clothes up to about the size of a small coin (a dirham). Washing it is still better.
- You do not need a prayer mat. Any clean floor, carpet or grass is fine.
What if you find najasa during or after the prayer?
Once, Nabi ﷺ was leading the prayer and took off his sandals in the middle of it. The people did the same. Afterwards he said: Jibril came to me and told me there was dirt on them13. He took them off and carried on. He did not start again.
- You notice it during the prayer and can take it off quickly, like a sock or a jacket: take it off and carry on. If you cannot take it off, stop, clean it, then pray again.
- You notice it after the prayer, and you did not know it was there: scholars differ.
- Malikis: your prayer counts. It is good to pray again if the prayer time has not ended.
- Hanafis and Shafi'is: pray it again. (Hanafis say this only if it was more than the small amount that is forgiven.)
- Hanbalis: their main view is pray it again. But many Hanbali scholars say it counts, because of the sandals hadith.
Not sure when it got there? Then you do not need to pray again. Follow your local masjid or a scholar you trust.
Sources for this section
- 8(Quran 74:4)
- 9(Bukhari 227)
- 10(Bukhari 335)
- 11(Tirmidhi 317)
- 12(Bukhari 223)
- 13(Abu Dawud 650)
4. What must you cover?
The awrah is the part of the body you must cover. In salah it must stay covered for the whole prayer. Allah says: wear your good clothes at every place of prayer14.
Men
- A man covers from the navel to the knee.
- Hanafis: the knee itself must be covered too. The other schools say the navel and knee do not have to be, but you cover a little of them to be sure.
- Shoulders: Nabi ﷺ said: do not pray in one piece of cloth with nothing on your shoulders15. Hanbalis say a man must cover at least one shoulder in a fard prayer. The other schools say it is strongly preferred. In practice: wear a shirt.
- Malikis say the most serious part is the private parts. If those are covered but the thighs are not, the prayer counts. But it is good to pray again while the prayer time lasts.
Women
- Most scholars say a woman in salah covers her whole body except the face and hands.
- Nabi ﷺ said: Allah does not accept the prayer of a woman who has reached puberty without a khimar (head covering)1617. So her hair, neck and ears must be covered.
- Hanafis: she does not have to cover her feet in salah either.
- Hanbalis: their main view is that only the face may show. But many Hanbali scholars also allow the hands to show.
- Malikis: if her hair, chest or arms showed by mistake, the prayer counts. But it is good to pray it again while the prayer time lasts.
- A woman praying alone at home still covers the same way. This is a rule of salah. It does not depend on who can see her.
What about see-through or tight clothes?
- See-through: if you can see the skin color through the cloth, that part is not covered. Common examples: thin leggings, sheer scarves, and light white cloth when it is wet. Nabi ﷺ warned about women who are dressed but look undressed18.
- Tight: clothes that hide the skin but show the shape of the body still count as covering. But they are better avoided in prayer. Wear something loose on top if you can.
- Something shows by accident, like the wind lifting a sleeve, and you cover it straight away? Your prayer is fine.
Can you pray in jeans, work clothes or a uniform?
- Yes. You can pray in jeans, trousers or work clothes, as long as they are clean and cover the awrah.
- Men in low jeans: check your back when you bow and go down in sujud. If your lower back and the top of your underwear show, your awrah is not covered. Wear a longer shirt or a belt.
- Women at work: a long top or a light abaya over trousers, plus a scarf, is enough. Many sisters keep a prayer outfit in a bag or at their desk.
Sources for this section
- 14(Quran 7:31)
- 15(Bukhari 359)
- 16(Abu Dawud 641)
- 17(Tirmidhi 377)
- 18(Muslim 2128)
5. Which way do you face?
The qibla is the direction of the Kabah in Makkah. Allah says: turn your face towards al-Masjid al-Haram, and wherever you are, turn your faces towards it19. Nabi ﷺ taught a man how to pray and told him: make wudu, face the qibla, and say Allahu akbar20.
For the first months in Madinah, the Muslims faced Jerusalem. Then Allah changed the qibla to the Kabah. When the news reached the people at Quba, they were in the middle of Fajr. They turned around right there, inside the prayer, and carried on21. People at another masjid turned while they were bowing22.
How exact do you need to be?
- You can see the Kabah? Then you must face the building itself.
- You are far away? Most scholars say the general direction is enough. Nabi ﷺ told the people of Madinah: what is between east and west is qibla23, because the Kabah was to their south. So a small error does not matter.
- Shafi'is say you should aim, as best you can, at the Kabah itself, not just the general direction.
How do you find it?
- Follow the masjid, or the prayer lines in a prayer room.
- Use a qibla app or compass on your phone. Hold the phone flat and away from metal for a better reading.
- Ask a local Muslim you trust.
- Use the sun: it rises roughly in the east and sets roughly in the west. In North America the qibla is roughly northeast. In the UK and most of Europe it is roughly southeast.
What if you cannot find it?
If none of these work, think carefully, pick the direction you believe is right, and pray. That is all Allah asks of you.
Once, on a journey, on a very dark night, the Companions could not tell where the qibla was. Each man prayed the way he thought was right. In the morning they told Nabi ﷺ, and this ayah came down: wherever you turn, there is the Face of Allah2425.
- You learn you were wrong during the prayer: turn to the right direction and carry on, like the people of Quba26.
- You learn you were wrong after the prayer: most scholars say your prayer counts, because you did your best. Malikis say it is good to pray again if the prayer time has not ended. Shafi'is say pray again if you are sure you were wrong.
- You did not even try to find it, though you could have? Pray again.
On a plane, train, bus or car?
- Extra (voluntary) prayers: you can pray them sitting in your seat, facing the way you are going. Nabi ﷺ prayed voluntary prayers and witr on his camel, facing wherever it went, and nodded his head to bow2728.
- Fard (required) prayers: Nabi ﷺ got down from his camel for these and faced the qibla29. So for a fard prayer, try to stand and face the qibla. On a plane, the galley or an empty space near the doors often works. Ask the crew.
- Often it is easier to pray after you land or arrive, before the time ends. Or, as a traveller, you can join two prayers.
- None of that possible, and the time is running out? Pray in your seat as best you can. Do not let the time pass. Allah says: fear Allah as much as you are able30. Some scholars, mainly Shafi'is, say to pray it again later if you could not stand or face the qibla.
- In a car, pull over somewhere safe if you can, and pray outside or at a rest area.
The same goes for anyone who cannot turn, like a patient in a hospital bed. Pray facing whatever way you can. Allah does not ask a soul for more than it can carry31.
Sources for this section
- 19(Quran 2:144)
- 20(Bukhari 6251)
- 21(Bukhari 403)
- 22(Bukhari 4486)
- 23(Tirmidhi 342)
- 24(Tirmidhi 345)
- 25(Quran 2:115)
- 26(Bukhari 403)
- 27(Bukhari 1000)
- 28(Bukhari 1094)
- 29(Bukhari 400)
- 30(Quran 64:16)
- 31(Quran 2:286)
6. Has the prayer time started?
Allah says: salah is a duty at set times32. If you pray a fard prayer before its time starts, it does not count, even if you are one minute early. You must pray it again once the time starts.
- Not sure the time has started? Wait until you are sure.
- The one exception: a traveller, or someone with a good reason, can join two prayers, for example pray Asr early together with Dhuhr. The travel chapter explains how.
For all the prayer times, see Why salah, who must pray, and the times and our Prayer times page.
Sources for this section
- 32(Quran 4:103)
7. What is the intention (niyyah)?
Nabi ﷺ said: actions are judged by intentions, and each person gets what they intended33. Allah says people were only told to worship Him sincerely34.
The niyyah (intention) just means you know in your heart which prayer you are about to pray, and that you are praying it for Allah.
- The intention is in the heart. If you got up, made wudu and stood to pray Dhuhr, you already have it.
- For a fard prayer, know which one it is: Dhuhr, Asr and so on. For a general voluntary prayer, meaning to pray is enough.
- It should be there when you say the first Allahu akbar, or just before.
- Praying behind an imam? You also mean to follow him.
Do I say it out loud?
No, you do not need to. All four schools agree the intention is in the heart. No report says Nabi ﷺ or his Companions said the intention out loud before the prayer.
- Some Hanafi, Shafi'i and Hanbali scholars say it is good to say it quietly to yourself, like "I am praying four rakat of Dhuhr", because it helps the heart focus.
- Malikis say it is better not to say it.
- All scholars say it is better to avoid saying it loudly, so it does not bother the people next to you.
Sources for this section
- 33(Bukhari 1)
- 34(Quran 98:5)
Common questions
- I found a small spot of blood on my shirt after I prayed. Do I pray again?
- Most scholars forgive a small spot of blood, so your prayer is fine. If it was a lot, see the najasa section above. The schools differ, and praying again is the safer choice if the prayer time has not ended.
- I prayed at work and later found out my qibla app was off by a bit.
- Your prayer counts. When you are far away, the general direction is enough35. Fix the direction for next time.
- My hair showed a little from under my scarf during the prayer.
- If you fixed it quickly, your prayer is fine. If a lot was showing for a long part of the prayer, most scholars say pray it again. Malikis say it is good to pray again while the prayer time lasts.
- My child sat on my lap in a wet diaper while I was praying.
- A diaper that holds everything in does not spoil your prayer. Nabi ﷺ even carried his little granddaughter Umamah while he prayed. He put her down when he went into sujud and picked her up when he stood36. If urine actually leaked onto your clothes, wash that spot.
- I am a new Muslim. Do I have to make up the prayers from before I took shahada?
- No. Nabi ﷺ said: Islam wipes out what came before it37. Start with the next prayer, and learn as you go. Allah is pleased with every step.
- Can I pray in a room with pictures or a TV on the wall?
- Your prayer counts. But it is better to pray where nothing in front of you will distract you. Turn the TV off, or face a plain wall.
- I prayed Maghrib, then saw my timetable was set to the wrong city. I was five minutes early.
- A prayer before its time does not count, so pray Maghrib again. It is not a sin, because you did not know. Check the location in your app.
- I keep doubting if my intention was right, and I start the prayer again and again.
- Stop. If you stood up to pray a prayer, you meant to pray it. Do not start again because of doubts. Shaytan uses these doubts to wear you out. Ignoring them is the cure.
Sources for this section
- 35(Tirmidhi 342)
- 36(Bukhari 516)
- 37(Muslim 121)
This guide teaches what most scholars hold and notes where the four schools differ. For your own situation, ask a scholar you trust or your local masjid.