Rafiq Ask Rafiq

What do I do if I make a mistake in my prayer?

When you make a mistake in prayer, the remedy the Prophet ﷺ taught is the two prostrations of forgetfulness (sujud al-sahw), made at the end of the prayer. What you do before that depends on what went wrong: a mistake in a pillar must be corrected and the prayer completed, a mistake in an obligatory act is compensated by the two prostrations, and a mistake in something merely recommended requires nothing at all.

What the mistake actually is

The scholars divide what happens in prayer into three ranks, and the ruling follows the rank, not the size of the slip.

  • A pillar (rukn) — the opening takbir, al-Fatihah, bowing, the two prostrations, sitting for the final tashahhud, the closing salam. Missing one cannot be patched over; it has to be performed.
  • An obligatory act (wajib) — the tasbih of bowing and prostration, "My Lord forgive me" between the two prostrations, the first tashahhud, and similar. Missing one out of forgetfulness is forgiven, but it is sealed with the two prostrations.
  • A recommended act (sunnah) — reciting a surah after al-Fatihah, the extra takbirs, reciting aloud or silently. Leaving it requires nothing.

Shaykh Ibn Baz put the distinction plainly: the prostration is owed when an obligatory act is left out of forgetfulness or a pillar is missed, but "as for something recommended, no prostration is due" — if you recited only one or two tasbihs, or did not recite a surah after al-Fatihah, you owe nothing.

The steps, in order

  1. Stop and identify what was missed. Was it a pillar, an obligation, or a recommendation? Everything that follows depends on this.
  2. If it was a pillar, go back and do it — then complete the prayer from that point, and prostrate for forgetfulness at the end. Ibn Baz gives the example of forgetting the bowing: you return, bow, and then prostrate for forgetfulness. If a pillar was missed entirely and you have already moved well past it, that rak'ah is void and another takes its place.
  3. If it was an obligatory act, do not go back. It has been waived by forgetfulness; you simply make the two prostrations at the end.
  4. If it was a mistake in recitation, judge it by whether it changes the meaning. A slip that does not corrupt the meaning — a vowel ending with a valid grammatical face — requires nothing. A slip that does corrupt it, made in forgetfulness, is covered by the two prostrations.
  5. Make the two prostrations in the manner described below, then recite the tashahhud and the salam again.

How the two prostrations are made

They are exactly like the prostrations of the prayer itself. Shaykh Ibn Baz described them as two prostrations in which you say what you say in prayer — "Glory be to my Lord, the Most High" — and supplicate as you would in any prostration, with the takbir on going down and on rising, and the same calm and stillness. The Permanent Committee, quoted by IslamWeb, adds that there is no special formula for them: you say "Glory be to my Lord, the Most High," and between the two prostrations, "My Lord, forgive me; My Lord, forgive me."

Before the salam or after it

This is the part most people get wrong, and the scholars set it out by cause.

What happenedWhen to prostrate
Doubt about the number of rak'ahsBefore the salam, after building on what you are certain of
An obligatory act left out, such as the first tashahhudBefore the salam
You gave the salam early, then remembered and completed the prayerAfter the salam
You added something to the prayer, such as an extra rak'ahAfter the salam

Shaykh Ibn Baz's rule for doubt in the count is to build on certainty: if you are unsure whether you have prayed two or three, take it as two and complete the prayer, then prostrate twice before the salam. When the Prophet ﷺ left out the first tashahhud in one of his prayers, he prostrated before the salam; and when he gave the salam after two rak'ahs and then completed the prayer, he prostrated after it. Prostrating before the salam is the better course in most cases, and if you do it the other way it is still valid. The Hanafi school places the two prostrations after the salam in every case.

Mistakes in reciting al-Fatihah

Al-Fatihah is a pillar, so it is treated differently from the rest of the recitation. If you mix up the order of its verses, Shaykh Ibn 'Uthaymeen's ruling is that you must recite it again correctly. A mistake in the order of verses elsewhere in the Qur'an, made without intending it, requires no prostration at all.

Where the error changes the meaning, Shaykh Ibn Baz distinguishes sharply. Reading "the path of those whom I have favoured" instead of "whom You have favoured" attributes the blessing to the servant rather than to Allah — a grave error. If done deliberately it invalidates the prayer; if it slips out in forgetfulness, you correct the recitation and prostrate for forgetfulness. The same applies to addressing Allah with a feminine form. And if you omit a verse of al-Fatihah, the rak'ah is invalid unless you are prompted and return to it straight away.

If you are praying behind an imam

The follower carries no burden here. Shaykh Ibn Baz is explicit: if you are praying in congregation from the beginning and forget the tasbih of bowing or prostration, or "My Lord forgive me," or even al-Fatihah, no prostration is due from you — the imam bears it on your behalf. If you are the imam or praying alone, you do prostrate.

When nothing is owed

Two situations recur and both are answered the same way.

  • Doubts from waswasah. If the mistakes come from intrusive whispering rather than genuine forgetfulness, you ignore them and carry on. Shaykh Ibn 'Uthaymeen's answer, quoted by IslamWeb, covers three cases: a doubt that is pure imagination, a doubt that recurs constantly, and a doubt that comes after the prayer is finished — in none of them do you turn back. Ibn Baz's advice to a questioner troubled by repeated doubt about the opening takbir was that the prayer is valid, and that the cure is to turn fully to Allah, gather your heart, and seek refuge in Him from the accursed devil.
  • A slip that does not corrupt the meaning. A vowel ending with a valid grammatical face, in a word whose sense is unchanged, requires no prostration.

Some scholars also recommend, as a voluntary act, two prostrations after the salam for the one plagued by whispering — to humiliate the devil — and leaving them out does not invalidate the prayer.

Key takeaways

  • Identify the rank of what you missed first: a pillar is performed, an obligation is compensated by two prostrations, a recommendation requires nothing.
  • Never patch a pillar with prostration — go back and perform it, then complete the prayer and prostrate at the end.
  • Build on certainty when you doubt the count, then prostrate twice before the salam.
  • Prostrate after the salam when you gave it early and then completed the prayer; before it in most other cases.
  • If you are praying behind an imam, the imam bears the prostration for you — you owe nothing for a forgotten obligation.
  • Ignore doubts born of waswasah; do not keep restarting, and do not prostrate for them.

Further reading

  • Majmu' Fatawa wa Maqalat Mutanawwi'ah, Shaykh 'Abd al-'Aziz ibn Baz
  • Fatawa Nur 'ala al-Darb, Shaykh 'Abd al-'Aziz ibn Baz
  • Fatawa Nur 'ala al-Darb, Shaykh Muhammad ibn Salih al-'Uthaymeen

And Allah knows best.

Answered by Rafiq AI from the Qur'an, the hadith and the works of the scholars ·

This is a guide to what the scholars have said, not a fatwa. For your own situation, ask a qualified scholar who can hear the details.

Have a question of your own?

Ask Rafiq — it's free