"They used to say: 'If one is not sure of what he estimates is correct, then prostrate twice.'"
The Book of Forgetfulness (In Prayer)
Sunan an-Nasa'i 1247
Hadith Text
"They used to say: 'If one is not sure of what he estimates is correct, then prostrate twice.'"
Commentary
This narration from the Companions establishes the principle of performing two prostrations of forgetfulness (sajdatā al-sahw) when a worshipper experiences uncertainty in prayer. The scholars explain this refers to doubt about the number of rak'ahs performed, where one cannot determine with certainty whether they completed three or four units, for instance.
Imam al-Nawawi states in his commentary that this practice is based on the Prophetic tradition teaching that when in doubt, one should build upon what is certain and complete the prayer accordingly, then perform two prostrations before the salām. This compensates for potential deficiencies and safeguards the prayer's validity.
The Hanafi and Shafi'i schools affirm this ruling, considering these prostrations obligatory in cases of substantial doubt. The wisdom lies in rectifying the prayer through this prescribed act of humility before Allah, demonstrating the Shariah's compassion in providing solutions for human fallibility during worship.