Losing track of rakahs happens to many people. It does not mean your prayer is ruined, and it does not mean something is wrong with you. The Prophet gave clear, simple guidance for this exact situation. Islam does not leave you confused, and it does not turn worship into stress. The rulings are structured, balanced, and meant to protect you from doubt and anxiety.
What If Someone Cannot Keep Track?
This is where the hadith addresses the issue directly.
The Prophet said:
“If one of you doubts in his prayer and does not know how many he has prayed, three or four, let him throw away doubt and build upon what he is certain of.”
Reported in Sahih Muslim 571
He also said:
“If one of you is unsure in his prayer, let him seek what is correct, complete upon that, then perform two prostrations.”
Reported in Sahih al-Bukhari 401
These narrations establish the solutions and we will explain how these solutions can be applied.
Options for the One Who Loses Count
Option 1 — Ignore Doubt (If It Is Frequent)
If someone constantly doubts and overthinks, scholars say:
Ignore it.
Because this becomes waswas, and the cure for waswas is disregard.
This is mentioned by:
- Ibn Taymiyyah
- Al-Nawawi
If doubt is frequent and obsessive, do not entertain it. Continue your prayer.
Option 2 — Build Upon Certainty (If Doubt Is Occasional)
If you are unsure whether you prayed three or four, build upon what you are certain of, which is the lower number.
So if unsure between 3 and 4:
Assume 3.
Complete the 4th.
Then perform sujud al-sahw
How to Perform Sujud al-Sahw (Prostration of Forgetfulness)
Sujud al-sahw is simple. It is just two extra prostrations ( added to the end of your prayer right before you say Assalamu alaikum wa rahmutallahi
) to fix a mistake caused by forgetfulness.
This is directly from the hadith in Sahih Muslim.
Understanding Certainty vs Doubt
Here is the practical breakdown:
If you are more than 50 percent sure you missed a rakah, that is treated as certainty. Complete it and perform sujud al-sahw.
If you are less than 50 percent sure, that is doubt. Ignore it.
Islam operates on the principle:
Certainty is not removed by doubt.
You do not undo your prayer because of weak suspicion.
If It Becomes Repetitive and Compulsive
If someone constantly adds extra rakahs, constantly doubts, constantly repeats, then this is no longer normal forgetfulness.
It has become waswas.
In that case:
They must completely ignore the doubt.
They must stop adding extra rakahs.
They must stop entertaining the thought entirely.
Because once it becomes repetitive anxiety, feeding it strengthens it.
Scholars like Ibn Taymiyyah and Al-Nawawi explained that the cure for waswas is ignoring it.
Continuously adding rakahs out of anxiety can lead to:
- Mental exhaustion
- Despair
- Finding prayer burdensome
And that is spiritually dangerous.
Prayer is meant to bring calm, not panic.
If it reaches that level, the person must take a complete break from adding extra rakahs and commit to ignoring doubts fully.
Wallahu Alam.
Practical Tools to Help Remember Rakahs
If someone struggles with focus, they can use simple structured methods.
Method 1 — Assign a Dua Per Rakah
For example:
- First rakah: dua for family
- Second rakah: dua for akhirah
- Third rakah: dua for dunya
- Fourth rakah: open dua
By associating each rakah with a specific theme, the mind anchors the count naturally.
This is subtle and does not disrupt the prayer.
Method 2 — For Those With ADHD, Autism, or Severe Focus Issues
If someone has genuine concentration challenges, and this issue is discouraging them from praying, they may use minimal-distraction tools.
For example:
A small finger tasbih counter, the kind many Muslims wear.
Because:
- It is on the hand.
- It requires minimal movement.
- It does not require looking constantly.
- It can be pressed discreetly.
The goal is not to turn prayer into a mechanical act.
The goal is to prevent discouragement and anxiety.
Any method used should:
- Cause the least distraction possible.
- Preserve khushu as much as possible.
- Not turn into another obsession.
Final Balanced Position
- Ignore simple doubt.
- Act only on real certainty.
- If more than 50 percent sure, complete and do sujud al-sahw.
- If less than 50 percent, ignore.
- If it becomes repetitive and compulsive, completely ignore and stop adding extra rakahs.
- Use structured memory tools if genuinely needed.
Do not let waswas make prayer heavy.
Salah is not meant to become a source of anxiety.
Shaytan wants worship to feel difficult.
The believer keeps it simple, structured, and calm.
The Prophet gave structured solutions.
He did not command restarting the prayer repeatedly.
He did not encourage paranoia.
He did not make it complicated.
May Allah make it easy on you and your journey going forward. Share with someone who you think might be going through the same problem so they can benefit insha Allah.