Sajdah Sahw
It happens to almost every Muslim at some point — you’re deep in prayer, focused, and suddenly you lose count. Was that the second rakah or the third? Did you already sit for tashahhud, or not? Your mind goes blank for a second, and a small wave of panic sets in.
Here’s the reassuring truth: Islam has already accounted for this. There is a built-in remedy called Sajdah Sahw (the prostration of forgetfulness), and it exists precisely so that ordinary human forgetfulness never invalidates your prayer or causes unnecessary anxiety.
What Is Sajdah Sahw?
Sajdah Sahw is two extra prostrations performed at the end of the prayer, before or after the final tasleem (the ending salaam), to compensate for certain unintentional mistakes made during the prayer — such as forgetting a rakah, skipping a required part of the prayer, or adding an extra one by mistake.
It is based directly on the authentic Sunnah and the practice of the Prophet Muhammad ﷺ. The Prophet ﷺ himself experienced this kind of doubt and provided clear guidance. He said:
“I am a human being like you. I forget as you forget. You should remind me whenever I forget something.” (Sahih al-Bukhari, Hadith 401; Sahih Muslim, Hadith 572)
If the Prophet ﷺ experienced this kind of doubt and had a clear way to resolve it, it should put to rest any embarrassment or worry a person feels when it happens to them.
Quranic Basis for the Obligation of Prayer
Before understanding the remedy for forgetfulness, it is important to remember the foundational obligation of prayer in Islam. Allah commands in the Holy Quran:
“Verily, Salah is fixed upon the believers at fixed hours.” (Surah An-Nisa, 4:103)
This verse establishes the fixed nature of prayer times. However, Islam, in its mercy, provides concessions like Sajdah Sahw for human forgetfulness, ensuring that the prayer remains valid despite unintentional errors.
The Three Common Scenarios Requiring Sajdah Sahw
Scenario 1: You’re Not Sure How Many Rak’ahs You’ve Prayed
If you genuinely don’t know whether you’re on your 3rd or 4th rakah, the general guidance is to act on the lower number (assume it’s the 3rd) and continue the prayer accordingly, then perform Sajdah Sahw at the end. This errs on the side of caution — completing rather than falling short.
The Prophet ﷺ instructed:
“If a person among you has a doubt about his prayer and does not know whether he has prayed three or four, then he should discard the doubt and follow that which is certain. Then he should make two prostrations before the final Salam. If the person has prayed five Rak`ahs, then the two prostrations would make even his prayer. But if he has prayed four, then these prostrations would disgrace the Shaytan.” (Sahih Muslim, Hadith 571)
In another narration in Sahih al-Bukhari, it is mentioned that if one has doubt concerning his prayer, then he should do that which is most likely or probable and then at the end he should make two Sajdahs for Sahw (Sahih al-Bukhari, Hadith 386) .
Note: If doubt occurs frequently (waswas), the person should act on what is most probable, not always the lower number, to avoid burdening oneself .
Scenario 2: You Skipped an Obligatory Part of the Prayer
If you realize partway through that you forgot something required — for example, you stood up for the next rakah without sitting for the first tashahhud — you generally continue the prayer from where you are (rather than going back), and make up for the omission with Sajdah Sahw at the end.
If a forgotten pillar (rukn) is remembered before reaching the equivalent point in the next rak’ah, you should return and perform it. If remembered after, that rak’ah is invalidated and the current one takes its place .
Scenario 3: You Added Something Extra by Mistake
If you stood up for a fifth rakah by mistake, or repeated a part of the prayer unintentionally, once you realize the error you should return to the correct position, and again resolve it with Sajdah Sahw at the end.
The Prophet ﷺ provided a practical example of this. In one incident, he prayed only two rak’ahs of the `Asr prayer and finished with tasleem. When reminded by a man called Dhul-Yadain, he completed the prayer and then performed Sajdah Sahw . This shows that Sajdah Sahw is the remedy for both omissions and additions.
How to Actually Perform Sajdah Sahw — Step by Step
General Method
- Complete the rest of your prayer as normal, up to the final tashahhud.
- At the point where Tashahhud complete, perform the two prostrations.
- Each prostration is performed just like a normal sajdah in prayer — saying “Subhana Rabbiyal A’la” as you would in any sajdah.
- After the two prostrations (and the sitting between them, just like between two sajdahs in a normal rakah), conclude the prayer.
The Prophet ﷺ demonstrated this himself, as recorded in Sahih al-Bukhari:
“The Prophet ﷺ recited the Tashahhud, then made Tasleem, then prostrated two prostrations, then said the Tasleem.” (Sahih al-Bukhari, Hadith 1227)
The Four Schools of Thought — A Detailed Comparison
The exact sequence for performing Sajdah Sahw differs by school. This is a genuine area of madhab-specific detail, so if you consistently follow a particular school (Hanafi, Shafi’i, Maliki, or Hanbali), it’s worth confirming the exact sequence taught within that school .
| School of Thought | Ruling on Sajdah Sahw | When is it Performed? | Details After Tashahhud |
|---|---|---|---|
| Hanafi | Obligatory (Wajib) | After completing Tashahhud (to the right only) | After the two prostrations, recite the full Tashahhud again (including Salawat and du’a), then give the final Tasleem to both sides . |
| Shafi’i | Recommended Sunnah | Before the final Tasleem | After the two prostrations, you conclude with the final Tasleem. A separate Tashahhud is not required . |
| Maliki | Recommended Sunnah | Default is before Tasleem; if performed after Tasleem, must repeat Tashahhud and Tasleem | If performed after Tasleem, you recite a complete Tashahhud and repeat the Tasleem again . |
| Hanbali | Obligatory (Wajib) | Choice: before or after Tasleem | If performed after Tasleem, you recite the last Tashahhud and then make Tasleem again. If performed before, a separate Tashahhud is not required . |
When Sajdah Sahw Is Not Needed
- If you catch and correct a mistake immediately, before moving on to the next part of the prayer (e.g., you say the wrong dhikr in sajdah but immediately correct yourself), Sajdah Sahw generally isn’t required.
- If the mistake is about something recommended (sunnah) rather than obligatory (wajib/fard) within the prayer, many scholars hold that Sajdah Sahw isn’t strictly necessary, though some recommend it out of caution.
- If you’re praying behind an imam and he makes the mistake, you generally follow his lead and perform Sajdah Sahw along with him — you don’t need to perform it separately if you personally didn’t make an error.
Does This Invalidate the Prayer?
No — and this is the most important thing to internalize. Sajdah Sahw exists precisely so that these very common, unintentional lapses don’t invalidate the prayer. Missing Sajdah Sahw itself does not amount to disbelief or invalidate the prayer, as a number of jurists held that it is not obligatory but rather an act of Sunnah . Forgetting a rakah count, briefly losing focus, or making a similar unintentional slip is a normal part of being human, not a sign of a “bad” prayer or weak faith. The remedy is simple, built-in, and endorsed directly by the practice of the Prophet ﷺ himself.
The Hanafi school considers it obligatory (wajib) while the Shafi’i and Maliki schools view it as a recommended Sunnah . This diversity of opinion shows the mercy and flexibility within Islamic jurisprudence.
A Reassuring Reminder
If you take one thing from this article, let it be this: doubt and forgetfulness during prayer are not failures. They are addressed directly in the Sunnah, with a simple, dignified solution that lets you complete your prayer with confidence rather than starting over or spiraling into anxious repetition.
The Messenger of Allah ﷺ said:
“If one of you is in doubt as to how many rak’ah he has prayed, he is to start afresh” — and in another narration, he instructed to build on certainty and perform Sajdah Sahw. The remedy is clear and merciful.
The next time it happens to you — and at some point, it will — you’ll know exactly what to do.






