كتاب إقامة الصلاة والسنة فيها
5  
Establishing the Prayer and the Sunnah Regarding Them
(129)
Chapter: Forgetfulness during Prayer
(129)
باب فِي السَّهْوِ فِي الصَّلاَةِ
Sunan Ibn Majah 1204
‘Iyad narrated that he asked Abu Sa’eed Al-Khudri:
“One of us prays and he does not know how many (Rak’ah) he has prayed.” He said: “The Messenger of Allah (ﷺ) said: ‘When anyone of you prays and does not know how many he has prayed, let him perform two prostrations while he is sitting.’”
حَدَّثَنَا عَمْرُو بْنُ رَافِعٍ، حَدَّثَنَا إِسْمَاعِيلُ ابْنُ عُلَيَّةَ، عَنْ هِشَامٍ، حَدَّثَنِي يَحْيَى، حَدَّثَنِي عِيَاضٌ، أَنَّهُ سَأَلَ أَبَا سَعِيدٍ الْخُدْرِيَّ فَقَالَ أَحَدُنَا يُصَلِّي فَلاَ يَدْرِي كَمْ صَلَّى ‏.‏ فَقَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏ "‏ إِذَا صَلَّى أَحَدُكُمْ فَلَمْ يَدْرِ كَمْ صَلَّى، فَلْيَسْجُدْ سَجْدَتَيْنِ وَهُوَ جَالِسٌ ‏"‏ ‏.‏
Grade: Hasan (Darussalam)
Reference : Sunan Ibn Majah 1204
In-book reference : Book 5, Hadith 402
English translation : Vol. 1, Book 5, Hadith 1204