Hadith 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.
Hadith Reference صحيح ابن خزيمه / جماع أبواب السهو فى الصلاة / 1022
Hadith Takhrij صحيح