← All situations Salah

I Lost Count of My Rakats Mid-Prayer

Your Situation

You're mid-prayer and suddenly you're not sure whether that was your third rakah or your fourth, and you don't want to just guess.

What to know

The Prophet ﷺ gave a direct rule for exactly this: don't guess, and don't restart — go with the number you're certain of, finish the prayer from there, then add two extra prostrations before ending it.

What you can do

This is specifically about doubt during the prayer itself. If you only realize afterward that you may have miscounted, that's a related but separate question — the Sujood as-Sahw guide covers the fuller set of after-the-fact scenarios in more depth.
Sources: Sahih Muslim 571 (Abu Sa'id al-Khudri — cast aside the doubt, build on what you're certain of, then two prostrations before salam).
Ask About Something Else

DeenGuide gives general, sourced guidance — it isn't a fatwa. For your specific personal situation, consult a qualified local scholar.

Yunus Khan
Written by Yunus Khan
Founder of SabrTime — Building free Islamic digital tools that help Muslims strengthen their worship through technology.