Not Sure If You Prayed Correctly?
What Sajdah Sahw Fixes
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.
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.
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.
Frequently Asked Questions
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.