Learn when to perform Sujud As-Sahw before or after the Salam, what to recite during it, the ruling on missing the first Tashahhud, and whether another Tashahhud is required afterward.
All perfect praise be to Allah, the Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Prophet Muhammad ﷺ is His slave and Messenger.
Added something by mistake? Perform Sujud As-Sahw after the Salam. Missed an obligatory part? Perform it before the Salam. Not sure what happened? Then it depends on whether you lean toward one possibility.
1. When should Sujud As-Sahw be performed?
The stronger view among the scholars is that the timing depends on the kind of mistake you made.
If you're unsure what happened in the prayer:
2. What if you forget the first Tashahhud?
According to the stronger opinion, the first Tashahhud is one of the obligatory parts of the prayer. The Permanent Committee for Islamic Research and Ifta' said:
"If a person omits the first Tashahhud by mistake, he should make up for it by performing Sujud As-Sahw before the Salam. If he deliberately leaves it, then his prayer is invalid."
3. Do you repeat the Tashahhud after Sujud As-Sahw?
No. Whether the prostration comes before or after the Salam, there is no Tashahhud to repeat afterward.
4. What do you say during Sujud As-Sahw?
Exactly what you'd say in any other prostration in prayer. It has no special supplication of its own.
In each prostration, say:
سُبْحَانَ رَبِّيَ الْأَعْلَى
Subḥāna Rabbiyal-Aʿlā
Glory be to my Lord, the Most High.
Between the two prostrations, say:
رَبِّ اغْفِرْ لِي، رَبِّ اغْفِرْ لِي
Rabbi-ghfir lī, Rabbi-ghfir lī
My Lord, forgive me. My Lord, forgive me.
You may have heard of a special dhikr for this prostration, such as "Subḥāna man lā yas-hū wa lā yanām." There's no authentic evidence for it. The Sunnah is to say the same dhikr you say in a regular prostration.
Al-Mardawi (رحمه الله) said:
"The prostration of forgetfulness and what is said during it are the same as the prostration in the prayer."
Al-Ramli (رحمه الله) said:
"The manner of performing Sujud As-Sahw is the same as the prostration in prayer with regard to its obligatory and recommended acts."
Conclusion
Sujud As-Sahw is a mercy from Allah for the slips we all make in prayer. Added something? Do it after the Salam. Left out an obligatory part? Do it before. Say what you'd say in any prostration, and don't repeat the Tashahhud afterward.
And Allah knows best.