«إذا صلى أحدكم فلم يدري كيف صلى فليسجد سجدتين وهو جالس»
The Prophet (peace and blessings be upon him) said:
"When one of you prays and does not know how he has prayed (that is, he has doubt about the number of rak'ahs), let him perform two prostrations (of forgetfulness) while sitting."
Hadith Referenceصحیح الجامع الصغیر / حرف الألف / 646
Hadith Gradingالألبانی:حسن
Hadith Takhrij[ت هـ] عن أبي سعيد. الصحيحة ١٣٦٢: حم، د.