It is narrated from Sayyiduna Abdullah bin Ja'far (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever has a doubt during the prayer (about the number of rak'ahs or the like), let him perform two prostrations (of forgetfulness) while sitting (for the tashahhud)."
Hadith Referenceمسند أبي يعلى الموصلي / مسند عبد الله بن جعفر الهاشمي / 6792
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده ضعيف . » «قال سعيد بن محمد السناري: صحيح» «أخرجه سنن النسائي برقم: 1248، 1249، 1250، 1251، وأخرجه سنن أبي داود برقم: 1033، وأخرجه مسند أحمد برقم: 1750، مسند ابویعلیٰ ترقیم الاثری: 6759»