صحيح ابن خزيمه
Sahih Ibn Khuzaymah
جماع أبواب السهو فى الصلاة
Chapters on Forgetfulness in Prayer
(424) باب ذكر المصلي يشك فى صلاته
The chapter on a praying person doubting his prayer
Hadith Number: 1022
وفي خبر عياض، عن ابي سعيد الخدري، عن النبي صلى الله عليه وسلم:" إذا سها فلم يدر كم صلى فليسجد سجدتين وهو جالس". وفي خبر عبد الله بن جعفر، ومعاوية، عن النبي صلى الله عليه وسلم:" من شك في صلاته، فليسجد سجدتين وهو جالس". خرجت هذه الاخبار باسانيدها في كتاب الكبير، وهذه اللفظة مختصرة غير متقصاة
In the narration from Sayyiduna Abdullah bin Ja'far and Sayyiduna Muawiyah (may Allah be pleased with them both) from the Prophet (peace and blessings be upon him), it is stated: "Whoever has doubt in his prayer should perform two prostrations while sitting in Tashahhud." (The author of the book states:) I have mentioned these ahadith with their chains of narration in Kitab al-Kabir. And these words are brief and not detailed.
تخریج الحدیث: «صحيح، أخرجه ابن خزيمة فى (صحيحه) برقم: 1022، وأخرجه والنسائي: برقم: 1261»