Sayyiduna Abu Hurayrah (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: "When any of you forgets in his prayer and does not know whether he has left something out of the prayer or added to it, he should perform two prostrations while sitting, then give the salam."
A similar narration is also reported from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3834
Hadith Gradingمحدثین:صحيح
Hadith Takhrij«صحيح۔ قال الدار قطني في العلل 1761»