Sujud al-Sahw: How to Do the Prostration of Forgetfulness in Salah
How to do sujud al-sahw: when the prostration of forgetfulness applies, before or after the salam in each school, doubt over rak'ahs and mistakes behind an imam.
What this guide covers
Sujud al-sahw is two extra prostrations at the end of the prayer that make up for a mistake made through forgetfulness, such as adding a rak'ah, missing the first tashahhud or losing count. The Prophet made them both before and after the salam, so the schools differ over which is preferred, though scholars agree the prayer is valid either way. This guide sets out the key hadith, each school's method, doubt about rak'ahs and praying behind an imam.
Scope: An introductory, source-linked guide to the prostration of forgetfulness in the four Sunni schools; it is not a fatwa and gives no rulings. The schools classify the acts of prayer differently and their details are extensive, so learn your school's method from a qualified teacher and ask a scholar about any specific mistake.
Key takeaways
- Sujud al-sahw is two prostrations at the end of the prayer for a forgetful addition, omission or doubt, not for deliberate mistakes or added just in case.
- The Prophet prostrated before the salam after missing the first tashahhud (Sahih al-Bukhari 1224) and after it when he had given the salam too early (Sahih al-Bukhari 1229).
- Hanafis prostrate after one salam to the right; Shafi'is before the salam; Malikis before for an omission and after for an addition; Hanbalis before, except after an early salam.
- If unsure how many rak'ahs you prayed, build on certainty or on what seems most likely, as your school teaches; persistent doubts are ignored.
- A follower prostrates with the imam and generally does not prostrate for his own small lapses behind him.

A prayer mat in the afternoon light of a quiet room. The guide below sets out when the two prostrations apply and how each school places them.
AI illustrationSujud al-sahw, also called sajda sahw, is two prostrations made at the end of the prayer to make up for a mistake made through forgetfulness. IslamWeb lists three situations that call for it: adding something by mistake, such as an extra rak'ah or prostration, omitting one of the prayer's required acts, and doubting how much has been prayed.
The Prophet himself forgot in prayer and showed how to repair it, saying that he was a human being who forgets as others forget (Sahih al-Bukhari 401). Prayer is established for Allah's remembrance (Quran 20:14), the Quran praises those humble in their prayers (23:1-2), and it teaches the prayer, 'Our Lord! Condemn us not if we forget, or miss the mark!' (2:286).
Its status differs. A Shafi'i answer on IslamQA.org calls it recommended and records that Imam Ahmad and the Hanafi al-Karkhi held it obligatory, while Malik held it obligatory for an omission and recommended for an addition. Shaykh Faraz Rabbani says the Hanafi school requires it when a necessary (wajib) act is forgotten. Al-Bukhari's chapter for Sahih al-Bukhari 1232 covers obligatory and voluntary prayers.
Four authentic reports underlie every school's rules. They show the prostrations made both before and after the salam, which is why the schools reached different conclusions about which is preferred.
In the report of Dhul-Yadayn, a man asked whether the prayer had been shortened or the Prophet had forgotten, and the Prophet completed what was missing before prostrating. Sunan Abi Dawud 1036, graded sahih by al-Albani, adds that an imam who remembers the first tashahhud before standing fully upright sits back down, and otherwise continues and prostrates twice.
| What happened | What the Prophet did | Source |
|---|---|---|
| Stood up after two rak'ahs without sitting for the first tashahhud | Continued, then made two prostrations before the salam | Sahih al-Bukhari 1224 |
| Gave the salam after two rak'ahs of a four-rak'ah prayer | Prayed the remaining two, gave the salam, then made two prostrations with takbir | Sahih al-Bukhari 1229 |
| Prayed five rak'ahs of Dhuhr | Made two prostrations after the salam once he was told | Sahih al-Bukhari 1226 |
| Taught what to do when unsure of the number of rak'ahs | Build on certainty and prostrate before the salam; or aim for what is correct, complete, give the salam and prostrate | Sahih Muslim 571a; Sahih al-Bukhari 401 |
The prostrations are the same in every school: say Allahu akbar and prostrate as in any prayer, rise to sit with takbir, prostrate a second time and rise again with takbir. Sahih al-Bukhari 1229 describes each prostration as like the Prophet's ordinary prostration or a little longer.
What differs is whether they come before or after the salam and what follows them; the outline below shows the common pattern, and the school table in the next section gives each method.
- Complete the prayer up to the final sitting and recite the tashahhud.
- Before the salam: make the two prostrations at the end of the final sitting, then give the salam.
- After the salam: give the salam, make the two prostrations with takbir, then end the prayer as your school teaches.
- In the Shafi'i school the imam or person praying alone intends the prostrations silently; the follower need not.
Both are valid; the schools differ over what is preferred. IslamQA quotes al-Mawardi that the jurists do not disagree that it may be done before or after the salam, only about which is Sunnah, and IslamWeb likewise says scholars agree the prayer is valid either way.
Each position rests on reports. The Shafi'i answer prefers Ibn Buhaynah's report of prostrating before the salam, while Hanafi answers cite Sunan Abi Dawud 1038, graded hasan by al-Albani: for each forgetfulness, two prostrations after the salam. Each school has further details; IslamWeb, for example, quotes the Hanbali al-Zarkashi placing them after the salam when one acts on what seems most likely in a doubt.
| School | Before or after the salam | How |
|---|---|---|
| Hanafi | After one salam to the right, whatever the mistake; before the salam still counts but leaves the preferred method | Tashahhud, one salam to the right, two prostrations, then sit for the tashahhud, salawat and supplication, and end with the two salams |
| Maliki | Before the salam for an omission; after it for an addition | Before: two prostrations after the tashahhud, then the tashahhud again and the salam. After: salam, takbir, two prostrations, tashahhud and a second salam |
| Shafi'i | Before the salam in all cases, in the relied-upon view | After the final tashahhud, salawat and supplication, two prostrations, then the salam straight away |
| Hanbali | Before the salam, except after it when the salam was given before the prayer was complete | Two prostrations after the final tashahhud, then the salam; after an early salam, complete the prayer, give the salam, prostrate twice and give the salam again |
It is for forgetful mistakes in acts the school treats as required or emphasised, not for every slip and not as a routine extra. Shaykh Faraz Rabbani writes for the Hanafi school that leaving an obligatory (fard) act invalidates the prayer rather than being repaired by prostration, and that adding these prostrations to every prayer without need is a reprehensible innovation.
Because each school classifies the acts of prayer differently, the same slip can be treated differently. The examples below come from the cited answers and illustrate the reasoning; they are not a complete list.
- Forgetting the first tashahhud: the Prophet continued and prostrated (Sahih al-Bukhari 1224); the Permanent Committee, quoted on IslamQA, says leaving it deliberately invalidates the prayer.
- Standing for an extra rak'ah: a Hanafi answer says to return to the final sitting and prostrate; if you skipped the final sitting and have already prostrated in the extra rak'ah, the obligatory prayer is repeated.
- Forgetting the surah you began after Al-Fatihah and reciting another: a Hanafi answer says no prostration is needed.
- Missing the bowing and remembering in prostration: a Maliki answer says to return to bowing, continue and prostrate after the salam.
- Doubting whether you made a prostration: IslamWeb, quoting Hanbali texts, says to go back and make it, since these prostrations do not replace a missing pillar.
Settle the doubt, complete the prayer and make the two prostrations. Sahih Muslim 571a says that whoever does not know whether he has prayed three or four should cast aside the doubt, build on what he is sure of and prostrate twice before the salam; Sahih al-Bukhari 401 says to aim for what is correct, complete the prayer, give the salam and prostrate twice.
Scholars combine the two reports in different ways. IslamQA says to build on the smaller number and prostrate before the salam when neither option seems more likely, and to act on what seems more likely and prostrate after the salam when one does. A SeekersGuidance Hanafi answer tells someone with frequent doubts to act on his first inclination and not revisit it.
Constant doubt is treated differently from an occasional lapse. Shaykh Ibn Uthaymin, answering on IslamQA, told someone who doubted in almost every prayer not to pay attention to those doubts or prostrate for them, and the same Hanafi answer cites Ibn Abidin that a person overtaken by whisperings should give them no attention.
Follow the imam. The Prophet said the imam is appointed to be followed, so do not differ from him, and 'if he prostrates, prostrate' (Sahih al-Bukhari 722). IslamQA quotes Ibn Qudamah and Ibn al-Mundhir that scholars agree a follower who prayed the whole prayer with the imam prostrates with him, whether before or after the salam.
A follower who forgets something small himself generally does not prostrate. An Askimam Hanafi answer says the prostration is due only on the imam and the person praying alone, and Shaykh Ibn Uthaymin, quoted on IslamQA, says the imam carries it for him; a missed pillar, however, may still have to be made up.
Latecomers have extra details. Ibn Uthaymin's summary says a latecomer prostrates with the imam before the salam but does not follow him in prostrations after it, completing his own prayer first, while a SeekersGuidance Hanafi answer says a latecomer who has already stood should sit back down and follow the imam.
If you remember soon after the salam, you can usually still do it. A Hanafi answer on SeekersGuidance says it remains due while you still face the qibla and have not spoken worldly speech, a Shafi'i answer on IslamQA.org allows it if you forgot and prostrate shortly afterwards, and the Maliki manual makes a forgotten pre-salam prostration after the salam.
If a long time has passed, the prayer is generally not lost. The Permanent Committee, quoted on IslamQA, says that whoever leaves the prostrations through forgetfulness or not knowing the ruling does not repeat the prayer, though leaving them deliberately is different, and Shaykh Faraz Rabbani writes that, in the Hanafi school, past prayers missing only a necessary act need not be repeated.
Say what you say in any prostration, such as Subhana Rabbiyal-A'la, Glory be to my Lord Most High. IslamQA quotes the Hanbali al-Mardawi that what is said in these prostrations is the same as in the prayer's prostration and says there is no special remembrance for them; the Shafi'i answer cites al-Mutawalli and al-Adhra'i to the same effect.
A phrase often linked to these prostrations, Subhana man la yanamu wa la yas-hu, Glory be to the One who neither sleeps nor forgets, has no established source: the Shafi'i answer quotes Ibn Hajar saying he found none, and IslamQA says there is no evidence for it, though a Shafi'i answer on Qibla mentions scholars who encourage it.
Quran passages in this guide
Read each complete verse below in Arabic and the identified English interpretation. Follow the context link before drawing conclusions from an isolated verse.
Al-Baqara 2:286. The closing verse of Al-Baqarah, which includes the supplication not to be condemned for forgetting or missing the mark.
لَا يُكَلِّفُ ٱللَّهُ نَفْسًا إِلَّا وُسْعَهَا ۚ لَهَا مَا كَسَبَتْ وَعَلَيْهَا مَا ٱكْتَسَبَتْ ۗ رَبَّنَا لَا تُؤَاخِذْنَآ إِن نَّسِينَآ أَوْ أَخْطَأْنَا ۚ رَبَّنَا وَلَا تَحْمِلْ عَلَيْنَآ إِصْرًا كَمَا حَمَلْتَهُۥ عَلَى ٱلَّذِينَ مِن قَبْلِنَا ۚ رَبَّنَا وَلَا تُحَمِّلْنَا مَا لَا طَاقَةَ لَنَا بِهِۦ ۖ وَٱعْفُ عَنَّا وَٱغْفِرْ لَنَا وَٱرْحَمْنَآ ۚ أَنتَ مَوْلَىٰنَا فَٱنصُرْنَا عَلَى ٱلْقَوْمِ ٱلْكَـٰفِرِينَ ٢٨٦
Allah tasketh not a soul beyond its scope. For it (is only) that which it hath earned, and against it (only) that which it hath deserved. Our Lord! Condemn us not if we forget, or miss the mark! Our Lord! Lay not on us such a burden as thou didst lay on those before us! Our Lord! Impose not on us that which we have not the strength to bear! Pardon us, absolve us and have mercy on us, Thou, our Protector, and give us victory over the disbelieving folk.
Taa-Haa 20:14. Establish worship for My remembrance.
إِنَّنِىٓ أَنَا ٱللَّهُ لَآ إِلَـٰهَ إِلَّآ أَنَا۠ فَٱعْبُدْنِى وَأَقِمِ ٱلصَّلَوٰةَ لِذِكْرِىٓ ١٤
Lo! I, even I, am Allah, There is no God save Me. So serve Me and establish worship for My remembrance.
Al-Muminoon 23:1. Successful indeed are the believers.
بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ قَدْ أَفْلَحَ ٱلْمُؤْمِنُونَ ١
Successful indeed are the believers
Al-Muminoon 23:2. Who are humble in their prayers.
ٱلَّذِينَ هُمْ فِى صَلَاتِهِمْ خَـٰشِعُونَ ٢
Who are humble in their prayers,
Questions readers often ask
What if I forget the first tashahhud?
If you remember before standing fully upright, Sunan Abi Dawud 1036, graded sahih by al-Albani, says to sit back down; once you are upright, carry on and make the two prostrations of forgetfulness. Ibn Uthaymin, quoted on IslamQA, says to prostrate even after sitting back down, while a Hanafi answer from Darul Ifta Birmingham says no prostration is needed then, so follow your teacher.
Link to this questionDo I recite the tashahhud again after sujud al-sahw?
It depends on the school. Hanafis recite the tashahhud, salawat and supplication after the prostrations and the Maliki manual repeats the tashahhud, while IslamQA says repeating it is not prescribed. Jami at-Tirmidhi 395, graded Sahih by Darussalam, reports a tashahhud after them and notes that scholars differed; al-Albani graded the same wording in Sunan Abi Dawud 1039 Shadh.
Link to this questionCan I do sujud al-sahw in every prayer just in case?
No. Shaykh Faraz Rabbani, answering for the Hanafi school, calls performing it in every prayer without need prohibitively disliked and a reprehensible innovation, adding that actions are presumed sound until shown otherwise. Prostrate only when a real mistake calls for it.
Link to this questionSources: [20]
Does sujud al-sahw apply to sunnah and nafl prayers?
Yes. Al-Bukhari titled the chapter of Sahih al-Bukhari 1232 'Sahw in compulsory Salat and Nawafil'. Details can differ in voluntary prayers, as the Maliki manual shows for someone who stands for a third rak'ah in a voluntary prayer, so ask your teacher about specific cases.
Link to this questionIs one prostration of forgetfulness enough?
Sujud al-sahw is two prostrations. IslamQA, citing Sahih al-Bukhari 401, says an imam who made only one should have made two, but that a prayer where this happened through ignorance remains valid, under the same ruling as forgetting the prostrations.
Link to this questionWhat if I made the mistake on purpose?
Sujud al-sahw is for forgetfulness. The Permanent Committee, quoted on IslamQA, says deliberately omitting an obligatory act such as the first tashahhud invalidates the prayer, as does deliberately leaving out prostrations of forgetfulness that are due. Ask a scholar how your school treats the specific act.
Link to this questionSources
- Sahih al-Bukhari 401 HadithBack to citation
I am a human being and forget as you forget; whoever doubts should aim for what is correct, complete, give the salam and prostrate twice.
- Sahih al-Bukhari 1232 HadithBack to citation
Chapter: sahw in compulsory and voluntary prayers; whoever loses count should make two prostrations while sitting.
- Sahih al-Bukhari 1224 HadithBack to citation
Ibn Buhaynah: the Prophet stood after two rak'ahs without sitting and made two prostrations before the salam.
- Sahih al-Bukhari 1229 HadithBack to citation
Dhul-Yadayn: salam after two rak'ahs; the Prophet completed the prayer, gave the salam and prostrated twice with takbir.
- Back to citation
- Sahih Muslim 571a HadithBack to citation
Cast aside the doubt, build on what you are sure of and prostrate twice before the salam.
- Sunan Abi Dawud 1036 HadithBack to citation
The imam who stands after two rak'ahs sits back if not fully upright, otherwise continues and prostrates twice; displayed grade Sahih (Al-Albani).
- Sunan Abi Dawud 1038 HadithBack to citation
For each forgetfulness there are two prostrations after the salam; displayed grade Hasan (Al-Albani).
- Back to citation
- Jami at-Tirmidhi 395 HadithBack to citation
Two prostrations, then the tashahhud, then the salam; al-Tirmidhi notes scholars differed; displayed grade Sahih (Darussalam).
- Sunan Abi Dawud 1039 HadithBack to citation
The same report of a tashahhud after the prostrations; displayed grade Shadh (Al-Albani).
- IslamWeb: details pertaining to prostration for forgetfulness Scholarly answerBack to citation
Three causes; scholars agree the prayer is valid before or after the salam; the positions of the four schools.
- IslamQA: how the prostration of forgetfulness is done in the Hanafi madhhab Scholarly answerBack to citation
Summarises the four schools on before or after the salam, quotes al-Mawardi on validity either way, and explains acting on certainty or on what seems most likely.
- SeekersGuidance: proofs for the Hanafi method of the forgetfulness prostration Scholarly answerBack to citation
One salam to the right, two prostrations, the tashahhud again and the final salams, with the narrations relied on.
- SeekersGuidance: how to perform sajda sahu Scholarly answerBack to citation
Shaykh Bassem Itani: tashahhud only before the first salam, then the prostrations, tashahhud, salawat, supplication and two salams.
- IslamWeb: sujood as-sahw according to the Hanafi school Scholarly answerBack to citation
Quotes al-Kasani: after the salam is recommended; before it is valid but leaves the recommended manner.
- IslamQA.org (Shafiifiqh): how is sujud al-sahw made? Scholarly answerBack to citation
Recommended in the Shafi'i school; made before the salam after the tashahhud and what follows it; no source found for Subhana man la yanamu wa la yas-hu.
- Maliki Madhab Subcontinent: prostrations of forgetfulness School referenceBack to citation
Maliki method of prostrations before the salam for omissions and after it for additions, with the tashahhud repeated, and worked examples.
- IslamWeb: when the imam should be followed in sujood as-sahw Scholarly answerBack to citation
A doubted pillar must be performed; quotes al-Zarkashi on prostrating after the salam when acting on what seems most likely, and al-Nawawi on following the imam.
- SeekersGuidance: can the forgetfulness prostration be done in every prayer? Scholarly answerBack to citation
Shaykh Faraz Rabbani: only for a forgotten necessary act; doing it every prayer is a reprehensible innovation; fard versus wajib omissions.
- IslamQA: when to offer sujud as-sahw Scholarly answerBack to citation
First tashahhud and the Permanent Committee; no repeated tashahhud; same dhikr as ordinary prostration, quoting al-Mardawi and al-Ramli.
- SeekersGuidance: wrong number of cycles during prayer Scholarly answerBack to citation
Hanafi: return to the final sitting and prostrate; prostrating in an extra rak'ah without the final sitting invalidates the obligatory prayer.
- SeekersGuidance: forgetting a surah in prayer Scholarly answerBack to citation
No prostration for forgetting the chosen surah, since it is only required for a forgotten necessary act.
- SeekersGuidance: correcting a missed obligatory action (Maliki) Scholarly answerBack to citation
A forgotten bowing remembered in prostration: return to bowing, continue and prostrate twice after the salam.
- SeekersGuidance: which number to follow if I doubt my prayer count Scholarly answerBack to citation
Shaykh Faraz Rabbani: with frequent doubt, act on the first inclination; Ibn Abidin on giving whisperings no attention.
- IslamQA: not doing sujood al-sahw to ward off waswaas Scholarly answerBack to citation
Ibn Uthaymin: someone with constant doubts should ignore them and not prostrate for them.
- IslamQA: following the imam in the prostration of forgetfulness Scholarly answerBack to citation
Ibn Qudamah and Ibn al-Mundhir: scholars agree the follower prostrates with the imam, before or after the salam.
- Askimam via IslamQA.org: sajdah sahw behind the imam Scholarly answerBack to citation
Hanafi: a follower does not prostrate for his own mistake; it is due on the imam and the one praying alone.
- IslamQA: sujud as-sahw when following an imam Scholarly answerBack to citation
Ibn Uthaymin's summary: following the imam, latecomers, and the imam carrying the follower's small mistakes.
- SeekersGuidance: latecomer when the imam performs the forgetfulness prostrations Scholarly answerBack to citation
Hanafi: a latecomer who has stood sits back down and follows the imam in the prostrations.
- SeekersGuidance: up to when the forgetfulness prostrations can be made Scholarly answerBack to citation
Hanafi: still due while facing the qibla and before worldly speech.
- Qibla via IslamQA.org: prostration of forgetfulness (Shafi'i) Scholarly answerBack to citation
Made before the closing salams; after them only if forgotten, done shortly afterwards and the prayer not invalidated; some scholars encourage an extra glorification.
- IslamQA: ruling on forgetting a prostration of forgetfulness Scholarly answerBack to citation
First tashahhud cases, two prostrations not one, and the Permanent Committee on forgetting or deliberately leaving the prostrations.
- Darul Ifta Birmingham via IslamQA.org: the method of sajda sahw Scholarly answerBack to citation
Hanafi list of cases: after standing fully for a missed first sitting, continue and prostrate; if one sits back before standing fully, no prostration is needed.
- Quran 2:286 Primary textBack to citation
Our Lord! Condemn us not if we forget, or miss the mark; rendered on this page from the site's verified corpus.
- Back to citation
- Back to citation
Put this into practice
Learn the full prayer
Review the sequence of salah, including the sittings and tashahhud that sujud al-sahw repairs.
OpenPrayer times
Check today's prayer times for your location.
OpenRead Quran 20:14 in context
Read the verse on establishing prayer for Allah's remembrance with the verses around it.
OpenOpen Sahih al-Bukhari 1224
Read Ibn Buhaynah's report of the prostrations before the salam on Sunnah.com.
OpenOpen Sahih Muslim 571a
Read the instruction to build on certainty when unsure of the number of rak'ahs.
OpenIn-depth guides
Read complete English guides with visible sources and practical next steps.

How to Pray Salah: A Beginner's Step-by-Step Guide
Learn a clear common Sunni salah sequence, the daily prayer units, what to prepare, what to recite, and where recognized practice differences occur.
Read the guide
Witr Prayer: Time, Rak'ahs, Qunut, and Sunni Methods Explained
Learn when to pray Witr, why one and three rak'ah methods differ, where Dua Qunut belongs, and what to do about Tahajjud or a missed Witr.
Read the guide
Dua Qunoot: Meaning, Words, When to Recite It and School Differences
Dua Qunoot in transliteration and English: al-Hasan's Witr supplication, the Hanafi wording, qunut in Fajr and at times of calamity, and how the schools differ.
Read the guide
Jummah Prayer Guide: Friday Time, Khutbah, Rak'ahs, and Late Arrival
Prepare for Jumu'ah with a practical guide to Friday prayer, the khutbah, two congregational rak'ahs, who must attend, and what to do if you arrive late.
Read the guide
Eid Prayer: How to Pray Salat al-Eid, Its Time, Takbirs and Sunnahs
How to pray Eid al-Fitr and Eid al-Adha: prayer time, two rak'ahs, extra takbirs by school, the khutbah, Sunnahs of the day, zakat al-fitr and udhiyah timing.
Read the guide
Taraweeh Prayer: Rak'ahs, History, How to Pray and Common Questions
Taraweeh explained: its status, how it began, why 8, 20 and 36 rak'ahs are all practised, how to pray it, praying at home, completing the Quran and women.
Read the guide
Qasr Prayer When Travelling: Shortening, Combining and How Far You Must Go
How to pray while travelling: which prayers you shorten, the qasr distance and stay in each school, combining prayers, praying behind a local imam and on planes.
Read the guide
How to Perform Wudu: A Clear Step-by-Step Guide
Learn how to make wudu in a practical common Sunni sequence, what must be washed, what commonly breaks wudu, and when to ask about school-specific details.
Read the guideSomething needs correction? Include the guide title and source number so the editorial trail stays clear.
Report a correction