Not Sure If You Prayed Correctly?
What Sajdah Sahw Fixes
Sajdah sahw is two extra prostrations at the end of the prayer that make up for an unintentional mistake — an addition, an omission or a doubt — so the prayer does not need to be repeated.
Added a rakah by mistake? Forgot a tashahhud? Genuinely unsure if that was your third or fourth rakah? None of that invalidates your salah. Here is exactly when sajdah sahw (the prostration of forgetfulness) is required, how to perform it, and what the four madhhabs say about the details.
Last updated:
What Is Sujood as-Sahw?
Sujood as-sahw, literally “the prostration of forgetfulness,” is two extra prostrations performed at the end of salah to correct an unintentional mistake — something added, something omitted, or a genuine doubt about what you did. It is a mercy built into the prayer: Allah does not hold a worshipper accountable for a slip of memory, and the prayer does not need to be repeated from the start.
Sajdah Sahw at a Glance
| Situation | What to do | When to prostrate |
|---|---|---|
| Omission (e.g. forgot the first tashahhud) | Carry on, finish the prayer, then perform two prostrations | Before the salam |
| Addition (e.g. an extra rakah) | Finish the prayer, then perform two prostrations | After the salam |
| Doubt about the number of rakat, no stronger assumption | Build on the lower (certain) number and complete the prayer | Before the salam |
| Doubt about the number of rakat, leaning strongly one way | Act on that stronger assumption and complete the prayer | After the salam |
This is the commonly taught summary. The Hanafi school places sajdah sahw after the salam in essentially every case; details are below.
When Is Sajdah Sahw Required?
Scholars generally group the causes into three categories:
- Ziyādah (addition): you stood for an extra rakah, added an extra bowing or prostration, or repeated a pillar unintentionally.
- Naqs (omission): you left out an obligatory (wājib) part of the prayer, most commonly the first tashahhud — as long as you didn’t leave out one of the actual pillars (arkān) of the prayer, like a bowing or a prostration itself, which must be made up rather than compensated with sajdah sahw alone.
- Shakk (doubt): you genuinely don’t know how many rakat you prayed, or whether you performed a particular part.
A small, unintentional movement that isn’t part of the prayer’s structure (adjusting your clothing, a brief cough) does not require sajdah sahw at all.
How to Perform It: Before or After the Salam
The mechanics are simple: two prostrations, performed exactly like a normal sujood, either just before the final salam or just after it. What differs — between situations, and between the four madhhabs — is the timing.
As a widely-taught general rule:
- If the cause was an omission (like forgetting the first tashahhud), prostrate before the salam.
- If the cause was an addition (an extra rakah or movement), prostrate after the salam.
- If the cause was doubt, see the rule below — it depends on whether you had a stronger assumption or not.
The four madhhabs differ on some of these details — the Hanafi school, for example, places sajdah sahw after the salam in essentially every case. If you follow a specific madhhab, it is worth confirming these specifics with a teacher from that school.
Doubt About the Number of Rakat
This is the single most common scenario people search for: you are praying and you genuinely lose track — was that the third rakah or the fourth? If that happens to you often, see forgetting and losing count during prayer for why it happens and how to stop it repeating.
The base of this ruling comes from a hadith of Abu Sa’id al-Khudri (Sahih Muslim): when in doubt about the number of rakat prayed, discard the doubt and build on the number you are certain of — which is always the lower number — then complete the prayer and perform sajdah sahw before the salam.
There is one important exception: if you have a stronger assumption (ghalib al-zann) about the correct count — even without full certainty — most scholars say you act on that stronger assumption instead of automatically dropping to the lower number, and in that case the prostration is performed after the salam. In short:
- No stronger assumption, pure doubt: build on the lower (certain) number → sajdah sahw before the salam.
- You lean strongly toward one number: act on that assumption → sajdah sahw after the salam.
Waswasa and Frequent Doubts
Some people experience doubt in nearly every prayer — is that waswasa (repetitive, intrusive whispering) rather than a genuine , one-off lapse of memory. If this describes you, the general guidance scholars give is gentle but firm: don’t chase every doubt. Continue your prayer as normal and don’t let the thought interrupt your khushū‘.
This is general guidance, not a substitute for advice tailored to your situation. If doubt in prayer is a recurring struggle for you, please speak with a knowledgeable local scholar or imam — they can help you apply the correct rule for your case.
How Prayer Memory Helps You Avoid Losing Count
Most of this uncertainty starts the same way: your mind wanders for a second and the count slips. Prayer Memory was built for exactly that moment. A silent haptic pulse on your Apple Watch marks each rakah as you pray, or you can tap a simple counter on your phone — either way, you always know exactly where you are without breaking focus to count in your head. It works offline, needs no account, and is on the App Store and Google Play.
Frequently Asked Questions
Sajdah sahw (the prostration of forgetfulness) is two extra prostrations you perform to correct an unintentional mistake in salah — adding, omitting, or doubting a part of the prayer — instead of repeating the whole prayer.
No. Forgetting a rakah, or doubting how many you prayed, doesn't invalidate your salah on its own. You complete the missing part (if you catch it in time) or build on your certainty, finish the prayer, and perform sajdah sahw.
It depends on the cause and differs slightly between the madhhabs. As a simple guide: for an omission, prostrate before the salam; for an addition, prostrate after the salam. For doubt about the number of rakat, build on the lower number and prostrate before the salam, unless you lean strongly toward one number, in which case act on it and prostrate after the salam.
If a short amount of time has passed and you haven't broken your ritual purity or spoken about unrelated matters, most scholars say you can still return, perform the missing sajdah sahw, and it's valid. If a long time has passed, consult a scholar about your specific case.
Frequent, obsessive doubt (waswasa) is treated differently from an occasional genuine doubt. The general advice is to ignore repetitive doubts, continue your prayer as normal, and not let them multiply. If this is a persistent struggle, please speak to a knowledgeable local scholar.
Yes, the four madhhabs differ on some details — mainly on exactly when to prostrate before or after the salam, and on how to handle repeated doubt. The core idea is shared: two prostrations restore the prayer without needing to repeat it.
Stop losing count mid-prayer
Prayer Memory keeps the count for you, silently, so doubt doesn’t have to enter your salah.
Doubt about your rakat count often comes up during long or distraction-heavy prayers. Read: Losing Count During Prayer? You’re Not Alone, or see the full rakat guide for every prayer.