‹ Back to the gateway homeWorship in Islam · 09 / 22

Forgetfulness in prayer

The prostration of forgetfulness: five cases from the Sunnah, an interactive helper, and the views of the four schools.

A mercy for forgetfulness

The prostration of forgetfulness (sujud as-sahw)

Every person forgets, even in prayer. The Prophet ﷺ himself forgot in prayer and said: “I am only a human being; I forget as you forget. So if I forget, remind me” (al-Bukhari 401; Muslim 572). Allah made a simple repair for this: two prostrations, like the prostrations of the prayer, with the takbir before each and sitting between them.

It is done for three reasons: adding something to the prayer by mistake, leaving something out, or being in doubt. Below are the cases reported from the Prophet ﷺ, then a simple helper to find what to do, and finally where the schools differ.

As the Prophet ﷺ did

Five cases from the Sunnah

You prayed an extra unit

The Prophet ﷺ once prayed five units of Dhuhr. When told, he made two prostrations after the salam (al-Bukhari 1226; Muslim 572).

You forgot the first tashahhud

He ﷺ stood up after two units without sitting, continued, and made two prostrations before the salam (al-Bukhari 829; Muslim 570). If you remember before standing fully, sit back down.

You gave salam too early

He ﷺ gave salam after two units; when reminded he completed the prayer, then made two prostrations after the salam (al-Bukhari 1229; Muslim 573).

You doubt how many units, with no preference

Build on the lower number, which is certain, complete the prayer and prostrate twice before the salam (Muslim 571).

You doubt, but one number seems more likely

Act on what seems most likely, complete the prayer, then prostrate twice after the salam (al-Bukhari 401; Muslim 572).

You forgot a pillar

Prostration alone is not enough: go back and do it if you have not reached the same position in the next unit; otherwise that unit does not count, so add a unit and prostrate.

Answer one question

What happened in your prayer?

Choose what happened and the helper shows you what to do, with its evidence. It follows the details reported in the Sunnah; the schools’ differences are below.

What happened?

✦ How: say “Allahu akbar” and prostrate, sit, prostrate again, then sit and give salam (if after the salam).

Before or after the salam?

Before or after the salam: the four schools

SchoolWhen to prostrate
HanafiAlways after the salam, giving one salam, prostrating twice, then the tashahhud and salam.
MalikiBefore the salam for something left out; after it for something added; if both, before.
Shafi‘iAlways before the salam.
HanbaliBefore the salam, except where the Sunnah specifies after it: after giving salam early and when acting on the most likely number.

All agree that the prayer is valid whichever way it is done; the difference is about the better way. The helper above follows the specific cases reported from the Prophet ﷺ, which is the Hanbali position and that of many scholars.

Sections of this page

  1. The meaning of worship
    1. What worship is
    2. When worship is accepted
    3. The power of intention
    4. A whole life of worship
    5. Islam, Iman, Ihsan
    6. Common misconceptions
  2. The worship of the heart
    1. The worship of the heart
    2. The heart in practice
    3. The believer in every state
    4. Presence of heart in prayer
    5. Guarding sincerity
    6. Repentance
    7. Never despair
  3. Purity and water
    1. Why purity matters
    2. Water for purification
    3. Impurities and cleaning
    4. Toilet manners
  4. Wudu in depth
    1. Wudu step by step
    2. Wudu across the four schools
    3. Sunnahs of wudu
    4. What breaks wudu
    5. Mistakes in wudu and ghusl
  5. Ghusl, tayammum and wiping
    1. When ghusl is required
    2. Valid and complete ghusl
    3. Ghusl step by step
    4. Dry ablution (tayammum)
    5. Tayammum and the schools
    6. Wiping over socks and casts
  6. Women’s purity
    1. Menstruation and worship
    2. Bleeding: what to know
    3. Questions women ask
  7. The rules of prayer
    1. The place of prayer
    2. Prayer times and qibla
    3. Conditions of prayer
    4. Pillars of prayer across the schools
    5. What invalidates prayer
    6. Disliked in prayer
  8. How to pray
    1. The call to prayer (adhan)
    2. Answering the adhan
    3. Salah step by step
    4. Al-Fatihah: a conversation
    5. Learn the words of prayer
    6. The prayer on one page
    7. Sunnahs of prayer
    8. The schools in the description of prayer
    9. Remembrance after prayer
    10. Common mistakes in prayer
    11. More about prayer
  9. Forgetfulness in prayer
    1. What it is
    2. The cases from the Sunnah
    3. Sahw helper
    4. Sahw across the schools
  10. Voluntary prayers
    1. The regular sunnah prayers
    2. Witr
    3. The night prayer
    4. The forenoon prayer
    5. The prayer of seeking guidance
    6. More voluntary prayers
    7. Prayers of repentance and need
    8. The rain prayer and the prostration of gratitude
    9. The fifteen prostrations of recitation
    10. Times without voluntary prayer
  11. Friday and congregation
    1. The Friday prayer
    2. Your Friday step by step
    3. Friday reminders
    4. Praying in congregation
    5. If you arrive late
    6. Manners of the mosque
  12. Special prayers and situations
    1. Prayer while travelling
    2. Travel rules across the schools
    3. When ill or travelling
    4. The prayer of fear
    5. The two Eids
    6. The Eid prayer
    7. The dying and the deceased
    8. The funeral prayer
    9. Writing your will
    10. Patience at calamity
    11. Expiations and vows
  13. Zakah and charity
    1. Zakah in brief
    2. Zakah on every kind of wealth
    3. Zakah on salary, pensions and jewellery
    4. Zakah calculator
    5. Savings and jewellery calculator
    6. Crops and livestock calculator
    7. Zakat al-fitr and fidyah calculators
    8. Voluntary charity
  14. Fasting
    1. How to fast Ramadan
    2. What breaks the fast
    3. Making up missed fasts
    4. Missed-fast tracker
    5. Laylat al-Qadr
    6. I‘tikaf
    7. Special days of fasting
    8. Voluntary fasts
    9. Your voluntary fasting calendar
    10. The Islamic calendar
  15. Hajj and ‘umrah
    1. The reward of Hajj
    2. Hajj and umrah step by step
    3. Pillars of Hajj across the schools
    4. Hajj day by day
    5. ‘Umrah step by step
    6. While in ihram
    7. Hajj and ‘umrah checklist
    8. The first ten days of Dhul-Hijjah
    9. The Eid sacrifice
    10. Visiting Madinah
  16. Remembrance and the Quran
    1. Living with the Quran
    2. Manners of the Quran
    3. Tajwid basics
    4. Quran completion planner
    5. Words beloved to Allah
    6. Morning & evening adhkar
    7. Tasbih counter
    8. Remembrance card
    9. Remembrance reminders
    10. Manners of supplication
    11. My supplications
    12. Supplications from the Quran
    13. Supplications of travel
    14. Everyday du‘as
  17. Worship at every age
    1. A day of worship
    2. Children
    3. Welcoming a newborn
    4. Young people
    5. Men
    6. Women
    7. Older men and women
    8. Illness and disability
    9. Worship at work and study
    10. The family as worship
    11. Special cases
  18. Constancy and progress
    1. How to stay constant
    2. My worship plan
    3. The fruits of worship
    4. My progress
  19. Worship in daily life
    1. Sunnahs of daily life
    2. Blessings on the Prophet ﷺ
    3. Worship through people
    4. Worship of the tongue
    5. Ruqyah: seeking healing with the Quran
    6. The evil eye and envy
  20. The year of worship
    1. The seasons of worship
    2. Your calendar of the year
    3. Ramadan in practice
    4. Your Ramadan tracker
  21. Your worship tools
    1. Prayer times and qibla
    2. Live qiblah compass
    3. Can I pray now?
    4. Does it break it?
    5. Your day of worship
    6. Missed prayers
    7. Missed-prayer tracker
    8. Printable monthly sheet
    9. Children’s prayer star chart
  22. Questions and resources
    1. Common questions
    2. Test yourself
    3. Glossary
    4. Printable booklet
    5. Sources