Shown for all four schools
Shown for Hanafi
Shown for Maliki
Shown for Shafi’i
Shown for Hanbali
The usual fix
Forgetfulness prostrations
Before your final salam, make two extra prostrations with a short sitting between them, then give the salam.
Some schools require this step
Sources: · · ·
Finish the tashahhud and give one salam to the right. Then make the two prostrations, say the tashahhud again and finish with the salam.
Fiqh Encyclopedia · vol. 24 · pp. 234–235, 238al-Shurunbulali, Maraqi al-Falah · p. 178Bukhari 1226 · Sahih
If you left something out, make the two prostrations before your final salam. If you added something, make them after it. If you did both, make them before it.
Fiqh Encyclopedia · vol. 24 · pp. 234–235, 238al-Dardir, al-Sharh al-Kabir · vol. 1 · pp. 274–275, 292Bukhari 1224 · SahihBukhari 1226 · Sahih
Make the two prostrations before your final salam.
Fiqh Encyclopedia · vol. 24 · pp. 234–235, 238al-Nawawi, Minhaj al-Talibin, in Mughni al-Muhtaj · vol. 1 · p. 439Bukhari 1224 · Sahih
Make the two prostrations before your final salam. Make them after it only if you gave the salam with rak’ahs still missing.
Fiqh Encyclopedia · vol. 24 · pp. 234–235, 238al-Buhuti, Kashshaf al-Qina’ · vol. 2 · p. 495Bukhari 1224 · SahihMuslim 574 · Sahih
What happened?
You’re not sure how many rak’ahs you’ve prayed
Go with the number you’re sure of (the lower one), finish the prayer, and make sujud al-sahw. Hanafis differ; see the note for your school.
Hanafi: If it’s the first time this has happened to you, start the prayer again. If it happens to you often, go with your best guess, and make sujud al-sahw only if you paused to think it over for as long as it takes to do one pillar of the prayer. If you have no guess, go with the lower number, sit at every point that could be the last rak’ah, and make sujud al-sahw.
Maliki: Go with the lower number, finish, and make sujud al-sahw after the salam, since you may have added a rak’ah.
Shafi’i: Go with the lower number, finish, and make sujud al-sahw.
Hanbali: Go with the lower number, finish, and make sujud al-sahw, whether you’re praying alone or leading the prayer.
Another view in the Hanbali school: if you’re leading the prayer, go with your best guess.
Fiqh Encyclopedia · vol. 24 · p. 235al-Shurunbulali, Nur al-Idah, in Maraqi al-Falah · pp. 182–183al-Haskafi, al-Durr al-Mukhtar, in Radd al-Muhtar · vol. 2 · p. 94Ibn Abidin, Radd al-Muhtar · vol. 2 · p. 94al-Dardir, al-Sharh al-Kabir · vol. 1 · p. 275al-Khatib al-Shirbini, Mughni al-Muhtaj · vol. 1 · p. 434al-Buhuti, Kashshaf al-Qina’ · vol. 2 · pp. 489–490Muslim 571 · SahihBukhari 401 · Sahih
Fiqh Encyclopedia · vol. 24 · p. 235al-Shurunbulali, Nur al-Idah, in Maraqi al-Falah · pp. 182–183al-Haskafi, al-Durr al-Mukhtar, in Radd al-Muhtar · vol. 2 · p. 94Ibn Abidin, Radd al-Muhtar · vol. 2 · p. 94Bukhari 401 · Sahih
Fiqh Encyclopedia · vol. 24 · p. 235al-Dardir, al-Sharh al-Kabir · vol. 1 · p. 275
Fiqh Encyclopedia · vol. 24 · p. 235al-Khatib al-Shirbini, Mughni al-Muhtaj · vol. 1 · p. 434Muslim 571 · Sahih
Fiqh Encyclopedia · vol. 24 · p. 235al-Buhuti, Kashshaf al-Qina’ · vol. 2 · pp. 489–490Muslim 571 · Sahih
During the prayer, you’re not sure whether your wudu broke
Carry on with the prayer. Hanafis and Malikis differ; see the note for your school.
Hanafi: If it’s the first time such a doubt has come to you, start the prayer again. If it often happens to you, carry on.
Maliki: Carry on. If you’re still unsure after the prayer, make wudu and pray it again, unless such doubts come to you every day.
Shafi’i: Carry on: your wudu still counts unless you’re sure it broke, even if you think it probably did.
Hanbali: Carry on: your wudu still counts unless you’re sure it broke, even if you think it probably did.
Hanafi scholars differ on whether you also renew wudu before starting again. For Malikis, if you think it more likely that nothing happened, it doesn’t count as doubt.
Fiqh Encyclopedia · vol. 26 · p. 192al-Shurunbulali, Maraqi al-Falah · p. 183al-Haskafi, al-Durr al-Mukhtar, in Radd al-Muhtar · vol. 2 · p. 95Ibn Abidin, Radd al-Muhtar · vol. 2 · p. 95al-Dardir, al-Sharh al-Kabir · vol. 1 · pp. 122–124Hashiyat al-Dasuqi, in al-Sharh al-Kabir · vol. 1 · p. 124al-Khatib al-Shirbini, Mughni al-Muhtaj · vol. 1 · p. 153al-Buhuti, Kashshaf al-Qina’ · vol. 1 · p. 307Bukhari 137 · SahihMuslim 362 · Sahih
Fiqh Encyclopedia · vol. 26 · p. 192al-Shurunbulali, Maraqi al-Falah · p. 183al-Haskafi, al-Durr al-Mukhtar, in Radd al-Muhtar · vol. 2 · p. 95Ibn Abidin, Radd al-Muhtar · vol. 2 · p. 95
Fiqh Encyclopedia · vol. 26 · p. 192al-Dardir, al-Sharh al-Kabir · vol. 1 · pp. 122–124Hashiyat al-Dasuqi, in al-Sharh al-Kabir · vol. 1 · p. 124
Fiqh Encyclopedia · vol. 26 · p. 192al-Khatib al-Shirbini, Mughni al-Muhtaj · vol. 1 · p. 153Muslim 362 · Sahih
Fiqh Encyclopedia · vol. 26 · p. 192al-Buhuti, Kashshaf al-Qina’ · vol. 1 · p. 307Bukhari 137 · SahihMuslim 362 · Sahih
You forgot the first sitting
If you remember before you’re fully standing, sit back down. If you’re already standing up straight, don’t go back: carry on with the prayer and make sujud al-sahw at the end.
Hanafi: Sitting back down on purpose after standing up straight invalidates the prayer.
Maliki: What counts is your hands and knees, not standing up straight. If a hand or a knee is still on the ground, sit back down; no sujud al-sahw is needed. Once both hands and both knees have left the ground, don’t go back: carry on and make sujud al-sahw before the salam. If you go back anyway, the prayer is still valid, and sujud al-sahw comes after the salam.
Shafi’i: Sitting back down on purpose after standing up straight invalidates the prayer.
Hanbali: Better not to sit back down once you’re standing up straight; if you do, the prayer is still valid. But once you’ve started reciting, going back invalidates it.
If you went back because you forgot or didn’t know, most scholars say the prayer is still valid.
Fiqh Encyclopedia · vol. 24 · p. 244al-Dardir, al-Sharh al-Kabir · vol. 1 · p. 296
Fiqh Encyclopedia · vol. 24 · p. 244
al-Dardir, al-Sharh al-Kabir · vol. 1 · p. 296
Fiqh Encyclopedia · vol. 24 · p. 244
Fiqh Encyclopedia · vol. 24 · p. 244
You prayed an extra rak’ah
If you realize during the extra rak’ah, sit down right away, finish the prayer from there (say the tashahhud if you haven’t yet), and make sujud al-sahw. If you only realize after the prayer, make sujud al-sahw then. Hanafis differ; see the note for your school.
Hanafi: If you stood up without having sat for the tashahhud after the last rak’ah: if you haven’t yet prostrated in the extra rak’ah, go back and sit, and make sujud al-sahw at the end. If you already prostrated in it, the obligatory prayer has turned into a voluntary one: add one more rak’ah, and pray the obligatory prayer again. If you had already sat for the tashahhud and then stood up: go back, sit and give the salam, without repeating the tashahhud. If you already prostrated, add one more rak’ah so the two extra ones count as voluntary, and make sujud al-sahw; your obligatory prayer is valid. If you realize after the prayer, you can still make sujud al-sahw while you’re in the mosque (or haven’t left the place where you prayed). Hanafi books explain that the time the Prophet ﷺ prayed five, he had already sat after the fourth.
Maliki: Sit down as soon as you realize. Because you added something, sujud al-sahw comes after the salam. If you realize after the prayer, make it whenever you remember, even much later.
Shafi’i: Sit down as soon as you realize, even if you’ve already prostrated in the extra rak’ah: say the tashahhud, make sujud al-sahw, and give the salam; your obligatory prayer is valid. If you realize after the prayer, make sujud al-sahw as long as not much time has passed. After a long gap, you don’t make it up.
Hanbali: Sit down as soon as you realize, without saying “Allahu akbar”. If you’d already said the tashahhud, don’t repeat it (say the blessings on the Prophet ﷺ if you hadn’t yet); make sujud al-sahw, then give the salam. If you realize after the prayer, make it as long as not much time has passed, your wudu is intact, and you haven’t left the mosque.
If you realize before prostrating in the extra rak’ah, all four schools agree you go back and sit.
Fiqh Encyclopedia · vol. 24 · pp. 234, 238, 240al-Shurunbulali, Nur al-Idah, in Maraqi al-Falah · pp. 180–181al-Nawawi, al-Majmu’ · vol. 4 · p. 163al-Buhuti, Kashshaf al-Qina’ · vol. 2 · p. 467al-Nawawi, Minhaj al-Talibin, in Mughni al-Muhtaj · vol. 1 · p. 439Bukhari 1226 · Sahihal-Sarakhsi, al-Mabsut · vol. 1 · p. 227
Fiqh Encyclopedia · vol. 24 · pp. 234, 238, 240al-Shurunbulali, Nur al-Idah, in Maraqi al-Falah · pp. 180–181Bukhari 1226 · Sahihal-Sarakhsi, al-Mabsut · vol. 1 · p. 227
Fiqh Encyclopedia · vol. 24 · pp. 234, 238, 240Bukhari 1226 · Sahih
Fiqh Encyclopedia · vol. 24 · pp. 234, 238, 240al-Nawawi, al-Majmu’ · vol. 4 · p. 163al-Nawawi, Minhaj al-Talibin, in Mughni al-Muhtaj · vol. 1 · p. 439Bukhari 1226 · Sahih
Fiqh Encyclopedia · vol. 24 · pp. 234, 238, 240al-Buhuti, Kashshaf al-Qina’ · vol. 2 · p. 467Bukhari 1226 · Sahih
You ended the prayer a rak’ah short
If you remember soon after, stand up, pray what you missed, and make sujud al-sahw. The Prophet ﷺ once gave the salam after two rak’ahs of a four-rak’ah prayer; when reminded, he prayed the other two and made two prostrations. If a long time has passed, pray the whole prayer again.
Hanafi: Make up a missed pillar if you still can; if you can’t, the prayer is invalid.
Maliki: If a long time has passed or you’ve left the mosque, pray it again.
Shafi’i: After a long gap you can’t continue it; pray it again.
Hanbali: In this case sujud al-sahw comes after the salam. If a long time has passed, your wudu broke, or you left the mosque, pray it again.
Fiqh Encyclopedia · vol. 24 · pp. 237–238, 240Bukhari 1227 · Sahih
You missed a prostration (or another pillar)
Sujud al-sahw alone doesn’t make up a missed pillar: you have to do the missed part. How you do it depends on when you remember (see the note for your school). Then make sujud al-sahw at the end of the prayer.
Hanafi: Do the missed part when you remember, even at the end of the prayer, then make sujud al-sahw; you don’t redo what came after it.
Maliki: If you remember before bowing in the next rak’ah, go back and do it. If you remember after, the rak’ah with the missed part doesn’t count: add a rak’ah at the end. Then make sujud al-sahw.
Shafi’i: Go back and do it when you remember. If you’ve already done the same part in a later rak’ah, that completes the earlier rak’ah and what came between doesn’t count. Then make sujud al-sahw.
Hanbali: If you remember before you start reciting in the next rak’ah, go back and do it and what follows. If you remember after, the rak’ah with the missed part doesn’t count and the one you’re in replaces it. Then make sujud al-sahw.
Fiqh Encyclopedia · vol. 24 · p. 237
Something done on purpose isn’t a mistake
Sujud al-sahw only repairs mistakes. If you add or leave out a pillar of the prayer (standing, sitting, bowing, prostrating) on purpose, the prayer is invalid: pray it again.
Fiqh Encyclopedia · vol. 24 · p. 235
Not sure of your school? Find it by where your family is from
Questions about wudu, prayer and fasting
In the Hilm app
Answers by your school, with sources.

Schools differ in a few small details. Most people follow the one their family or their mosque follows.
Page numbers follow the editions in the Shamela library. The steps and the sources are the ones the Hilm app uses. Last updated 2 December 2026. No scholar reviews each step.