Guide
Sujood al-Sahw: The Prostration of Forgetfulness
Sujood al-Sahw — the prostration of forgetfulness — is a pair of extra prostrations that repair honest mistakes in prayer. The Prophet Muhammad (peace be upon him) himself made mistakes in prayer to teach the community how to correct them, showing that lapses do not ruin a sincere prayer.
What triggers it
It addresses three kinds of lapse: adding something by mistake (an extra bow or unit), omitting a required but non-essential part (such as the first sitting), and doubting how much you have prayed. It does not fix a missing pillar such as a prostration — that part must actually be performed.
How it is performed
It is simply two prostrations like those in the prayer, made near the end. The schools differ on timing: some perform both prostrations before the closing salam, others after it, and some vary by the type of mistake. Each practice is transmitted and accepted.
Dealing with doubt
When unsure whether you prayed, say, three units or four, the common guidance is to build on what you are certain of (the smaller number), complete the prayer, and then make the two prostrations. This removes the need to restart over every passing doubt.
A mercy, not a burden
Sujood al-Sahw exists so that forgetfulness — a natural part of being human — never spoils an honest prayer. For lapses serious enough to actually break the prayer, see what invalidates the prayer.