- Published on
How to Do Sajdah Sahw: The Prostration of Forgetfulness
- Authors

- Name
- Ahmad
- Role
- Senior Marketing Manager, Islamic education โข Deen Back
ุจูุณูู ู ุงูููู ุงูุฑููุญูู ูฐูู ุงูุฑููุญูููู ู
In the name of God, the Most Gracious, the Most Merciful.

You are praying Asr. Somewhere around the second or third rakat your mind drifts โ the meeting tomorrow, what you need to buy at the store โ and suddenly you cannot remember how many rakats you have prayed.
Or you said the tashahhud at the wrong point. Or you forgot to recite the first tashahhud at all.
This happens to everyone. The question is: what do you do next?
The Prophet ๏ทบ did not leave us with a prayer system that self-destructs the moment we make a mistake. He taught us sajdah sahw โ the prostration of forgetfulness โ specifically so that normal human errors do not invalidate a sincere prayer.
Why This Matters
Understanding sajdah sahw is not just about following rules. It is about praying with confidence instead of anxiety.
ุงูุตููููุงุฉู ู ูููุชูุงุญู ุงููุฌููููุฉู
As-salatu miftahul-jannah
"The prayer is the key to paradise."
โ (Musnad Ahmad 14736)
If you spend every salah worrying that a small mistake has ruined it, you cannot connect in the way the prayer is designed to produce. Allah made sajdah sahw as a mercy โ use it, understand it, and pray with ease.
The Prophet ๏ทบ himself performed sajdah sahw when he made errors in prayer. It is not a sign of weakness. It is the Sunnah.
Step-by-Step Guide to Sajdah Sahw
Step 1: Identify the Error
Not every mistake requires sajdah sahw. Here is what does:
- Forgetting a wajib (obligatory) act, such as the first tashahhud (qa'dah ula)
- Adding an extra rakat by mistake
- Being genuinely uncertain about the number of rakats you have completed
- Saying the salam early by mistake (before the prayer was complete) โ in some schools
What does not require sajdah sahw:
- Forgetting a sunnah act (like reciting a specific surah)
- Making a minor verbal mistake in recitation
- Missing a fard pillar โ in that case, sajdah sahw is not enough; you may need to redo the rakat or the whole prayer
Step 2: Handle Doubt About Rakat Count
If you are unsure how many rakats you have prayed, the Prophet ๏ทบ gave a clear guideline:
ุฅูุฐูุง ุดูููู ุฃูุญูุฏูููู ู ููู ุตูููุงุชููู ููููู ู ููุฏูุฑู ููู ู ุตููููู ุฃูุซูููุงุซูุง ุฃูู ู ุฃูุฑูุจูุนูุง ููููููุทูุฑูุญู ุงูุดููููู ููููููุจููู ุนูููู ู ูุง ุงุณูุชููููููู
Idha shakka ahadukum fi salatih falam yadri kam salla โ athalathan am arba'an โ falyatrahi ash-shakka walyabni 'ala mas-taqan
"When one of you is uncertain in his prayer and does not know how many he has prayed, three or four โ let him discard the doubt and build on what he is certain of."
โ (Sahih Muslim 571)
In practice: If you doubt between three and four rakats, assume the lesser number (three), complete one more rakat to be safe, then perform sajdah sahw before or after salam.
Step 3: Complete the Prayer
Finish your prayer normally โ complete any remaining rakats, sit for the final tashahhud, and recite the tashahhud and salawat.
Step 4: Perform the Two Prostrations
Before (or after) giving salam, depending on your school:
- Say Allahu Akbar and go into prostration
- Say Subhana Rabbiyal A'la three times (as in regular sujood)
- Rise from prostration saying Allahu Akbar, sit briefly
- Go into the second prostration, repeat the same
- Rise from the second prostration
In the Hanafi school, you then recite the full tashahhud again and complete the salah with salam. In the Shafi and Hanbali schools, you make salam first, then perform the two prostrations after.
Step 5: Make Salam
After sajdah sahw (and the repeated tashahhud in the Hanafi method), make salam to the right and left as normal.
Never Lose Count in Prayer Again
DeenBack helps you build a consistent salah habit with reminders, tracking, and daily check-ins so each prayer feels grounded, not rushed.
Free download. Premium features available in-app.
Making It Stick โ The Habit Side
The deeper problem is not forgetting sajdah sahw โ it is praying while half your mind is somewhere else. That is what causes the errors in the first place.
The Prophet ๏ทบ loved small, consistent deeds above large sporadic ones. Building khushu (presence in prayer) is not about trying harder โ it is about removing distractions and training your attention gradually.
Start with one prayer a day where you commit fully: phone silent, no rushing, surah recited with meaning. One genuinely present prayer is worth more than five autopilot ones. As that becomes habit, extend it to two prayers, then three.
See how to build real focus in salah and pray on time consistently โ both will reduce the errors that trigger sajdah sahw in the first place.
Common Mistakes to Avoid
Mistake 1: Using sajdah sahw for leaving a fard pillar. If you forget a rakat entirely and only realize after giving salam, sajdah sahw alone is not enough in most schools. You need to redo the missing rakat, then perform sajdah sahw.
Mistake 2: Doing sajdah sahw for every minor slip. Forgetting to recite a specific surah? Not in the right dhikr? These do not require sajdah sahw. Overusing it creates anxiety, not confidence.
Mistake 3: Getting paralysed by doubt mid-prayer. If doubt strikes mid-prayer, apply the rule: go with the lesser number. Do not pause and deliberate for minutes โ it breaks your flow and your khushu. The ruling exists precisely so you can move forward.
Mistake 4: Not learning your madhab's specific position. The timing of sajdah sahw (before or after salam) differs by school. Know your school's position so you act with certainty.
Common Questions
What if I add an extra rakat by mistake? If you realize during the prayer, stop and sit for tashahhud, then perform sajdah sahw before salam. If you already gave salam, the extra rakat has already been added โ perform sajdah sahw immediately after salam.
Do I do sajdah sahw if I lead a congregation? Yes. If the imam makes an error that requires sajdah sahw, all those praying behind them follow. If a follower makes a mistake independently while the imam does not, they handle it individually โ usually after completing the congregational prayer.
What if I forget which rakat a wajib was missed in? Generally, the ruling applies to the overall effect (e.g., a tashahhud was omitted somewhere) rather than tracking exactly which rakat. Perform sajdah sahw and continue.
Closing โ Start Today, Not Tomorrow
Prayer is the pillar of the deen. Every rakat you complete, even with sajdah sahw at the end, is a success. Perfection is not the standard โ sincerity and consistency are.
Learn the rule, apply it when needed, and then return your attention to what matters: standing in front of Allah with a present heart. Read more about how to pray salah correctly to build a prayer that feels complete, not anxious.
Build a Salah Habit That Sticks
Track your five daily prayers in DeenBack โ with streaks, reminders, and daily duas to help you show up to every prayer with intention.
Free download. Premium features available in-app.
Frequently Asked Questions
What is sajdah sahw?
Sajdah sahw (prostration of forgetfulness) is two extra prostrations made at the end of salah to compensate for unintentional mistakes or omissions, such as forgetting a rakat, adding an extra one, or omitting a wajib act. It is a mercy from Allah so that small errors do not invalidate your prayer.
When do you perform sajdah sahw?
Sajdah sahw is performed when you forget a wajib (obligatory) act, add something extra, or are in doubt about the number of rakats. It is not required for forgetting a sunnah act, and it does not compensate for leaving a fard (pillar) of the prayer.
Is sajdah sahw before or after salam?
This depends on the school of thought. The Hanbali and Maliki positions generally place it before salam. The Shafi school generally places it after salam. The Hanafi school has specific cases for both. Follow the madhab you follow for your regular prayer.
What if I forget to do sajdah sahw?
According to most scholars, if you forget sajdah sahw and remember before a long time passes, you can still perform it. If a long time passes or you left the mosque, the prayer is still generally valid unless you left a fard pillar (not just a wajib).
Do I need to redo wudu for sajdah sahw?
No. Sajdah sahw is part of the same prayer. You do not need new wudu unless your wudu was invalidated during the prayer.
