Showing 1-50 of 10000
Sahih Muslim 572 m

'Abdullah b. Mas'ud reported:

The Apostle of Allah (may peace be upon him) performed two prostrations for forgetfulness after salutation and talking.
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَأَبُو كُرَيْبٍ قَالاَ حَدَّثَنَا أَبُو مُعَاوِيَةَ، ح قَالَ وَحَدَّثَنَا ابْنُ نُمَيْرٍ، حَدَّثَنَا حَفْصٌ، وَأَبُو مُعَاوِيَةَ عَنِ الأَعْمَشِ، عَنْ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ، عَنْ عَبْدِ اللَّهِ، أَنَّ النَّبِيَّ صلى الله عليه وسلم سَجَدَ سَجْدَتَىِ السَّهْوِ بَعْدَ السَّلاَمِ وَالْكَلاَمِ ‏.‏
Reference : Sahih Muslim 572m
In-book reference : Book 5, Hadith 124
USC-MSA web (English) reference : Book 4, Hadith 1180
  (deprecated numbering scheme)
Sahih al-Bukhari 3285

Narrated Abu Huraira:

The Prophet said, "When the call for the prayer is pronounced, Satan takes to his heels, passing wind with noise, When the call for the prayer is finished, he comes back. And when the Iqama is pronounced, he again takes to his heels, and after its completion, he returns again to interfere between the (praying) person and his heart, saying to him. 'Remember this or that thing.' till the person forgets whether he has offered three or four rak`at: so if one forgets whether he has prayed three or four rak`at, he should perform two prostrations of Sahu (i.e. forgetfulness).

حَدَّثَنَا مُحَمَّدُ بْنُ يُوسُفَ، حَدَّثَنَا الأَوْزَاعِيُّ، عَنْ يَحْيَى بْنِ أَبِي كَثِيرٍ، عَنْ أَبِي سَلَمَةَ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ قَالَ قَالَ النَّبِيُّ صلى الله عليه وسلم ‏"‏ إِذَا نُودِيَ بِالصَّلاَةِ أَدْبَرَ الشَّيْطَانُ وَلَهُ ضُرَاطٌ، فَإِذَا قُضِيَ أَقْبَلَ، فَإِذَا ثُوِّبَ بِهَا أَدْبَرَ، فَإِذَا قُضِيَ أَقْبَلَ، حَتَّى يَخْطِرَ بَيْنَ الإِنْسَانِ وَقَلْبِهِ، فَيَقُولُ اذْكُرْ كَذَا وَكَذَا‏.‏ حَتَّى لاَ يَدْرِي أَثَلاَثًا صَلَّى أَمْ أَرْبَعًا فَإِذَا لَمْ يَدْرِ ثَلاَثًا صَلَّى أَوْ أَرْبَعًا سَجَدَ سَجْدَتَىِ السَّهْوِ ‏"‏‏.‏
Reference : Sahih al-Bukhari 3285
In-book reference : Book 59, Hadith 94
USC-MSA web (English) reference : Vol. 4, Book 54, Hadith 505
  (deprecated numbering scheme)
Sahih al-Bukhari 1228b

Narrated Salama bin 'Alqama:

I asked Muhammad (bin Seereen) whether Tashah-hud should be recited after the two prostrations of Sahu. He replied, "It is not (mentioned) in Abu Huraira's narration . "

حَدَّثَنَا سُلَيْمَانُ بْنُ حَرْبٍ، حَدَّثَنَا حَمَّادٌ، عَنْ سَلَمَةَ بْنِ عَلْقَمَةَ، قَالَ قُلْتُ لِمُحَمَّدٍ فِي سَجْدَتَىِ السَّهْوِ تَشَهُّدٌ قَالَ لَيْسَ فِي حَدِيثِ أَبِي هُرَيْرَةَ‏.‏
Reference : Sahih al-Bukhari 1228b
In-book reference : Book 22, Hadith 6
USC-MSA web (English) reference : Vol. 2, Book 22, Hadith 320
  (deprecated numbering scheme)
Sahih al-Bukhari 6672

Narrated Ubai bin Ka'b:

that he heard Allah's Apostle saying, "(Moses) said, 'Call me not to account for what I forget and be not hard upon me for my affair (with you)' (18.73) the first excuse of Moses was his forgetfulness."

حَدَّثَنَا الْحُمَيْدِيُّ، حَدَّثَنَا سُفْيَانُ، حَدَّثَنَا عَمْرُو بْنُ دِينَارٍ، أَخْبَرَنِي سَعِيدُ بْنُ جُبَيْرٍ، قَالَ قُلْتُ لاِبْنِ عَبَّاسٍ فَقَالَ حَدَّثَنَا أُبَىُّ بْنُ كَعْبٍ، أَنَّهُ سَمِعَ رَسُولَ اللَّهِ صلى الله عليه وسلم ‏‏{‏لاَ تُؤَاخِذْنِي بِمَا نَسِيتُ وَلاَ تُرْهِقْنِي مِنْ أَمْرِي عُسْرًا‏}‏ قَالَ ‏" ‏ كَانَتِ الأُولَى مِنْ مُوسَى نِسْيَانًا ‏"‏‏.‏
Reference : Sahih al-Bukhari 6672
In-book reference : Book 83, Hadith 50
USC-MSA web (English) reference : Vol. 8, Book 78, Hadith 665
  (deprecated numbering scheme)
Sahih al-Bukhari 1222

Narrated Abu Huraira:

Allah's Apostle said, "When the Adhan for the prayer is pronounced, then Satan takes to his heels passing wind so that he may not hear the Adhan and when the Mu'adh-dhin finishes, he comes back; and when the Iqama is pronounced he again takes to his heels and when it is finished, he again comes back and continues reminding the praying person of things that he used not to remember when not in prayer till he forgets how much he has prayed." Abu Salama bin `Abdur-Rahman said, "If anyone of you has such a thing (forgetting the number of rak`at he has prayed) he should perform two prostrations of Sahu (i.e. forgetfulness) while sitting." Abu Salama narrates this from Abu Huraira.

حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ، حَدَّثَنَا اللَّيْثُ، عَنْ جَعْفَرٍ، عَنِ الأَعْرَجِ، قَالَ قَالَ أَبُو هُرَيْرَةَ ـ رضى الله عنه ـ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ إِذَا أُذِّنَ بِالصَّلاَةِ أَدْبَرَ الشَّيْطَانُ لَهُ ضُرَاطٌ حَتَّى لاَ يَسْمَعَ التَّأْذِينَ، فَإِذَا سَكَتَ الْمُؤَذِّنُ أَقْبَلَ، فَإِذَا ثُوِّبَ أَدْبَرَ فَإِذَا سَكَتَ أَقْبَلَ، فَلاَ يَزَالُ بِالْمَرْءِ يَقُولُ لَهُ اذْكُرْ مَا لَمْ يَكُنْ يَذْكُرُ حَتَّى لاَ يَدْرِي كَمْ صَلَّى ‏" ‏‏.‏ قَالَ أَبُو سَلَمَةَ بْنُ عَبْدِ الرَّحْمَنِ إِذَا فَعَلَ أَحَدُكُمْ ذَلِكَ فَلْيَسْجُدْ سَجْدَتَيْنِ وَهُوَ قَاعِدٌ‏.‏ وَسَمِعَهُ أَبُو سَلَمَةَ مِنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه‏.‏
Reference : Sahih al-Bukhari 1222
In-book reference : Book 21, Hadith 26
USC-MSA web (English) reference : Vol. 2, Book 22, Hadith 313
  (deprecated numbering scheme)
Sahih al-Bukhari 1225

Narrated `Abdullah bin Buhaina:

Allah's Apostle got up after the second rak`a of the Zuhr prayer without sitting in between (the second and the third rak`at). When he finished the prayer he performed two prostrations (of Sahu) and then finished the prayer with Taslim.

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، أَخْبَرَنَا مَالِكٌ، عَنْ يَحْيَى بْنِ سَعِيدٍ، عَنْ عَبْدِ الرَّحْمَنِ الأَعْرَجِ، عَنْ عَبْدِ اللَّهِ ابْنِ بُحَيْنَةَ ـ رضى الله عنه ـ أَنَّهُ قَالَ إِنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَامَ مِنِ اثْنَتَيْنِ مِنَ الظُّهْرِ لَمْ يَجْلِسْ بَيْنَهُمَا، فَلَمَّا قَضَى صَلاَتَهُ سَجَدَ سَجْدَتَيْنِ ثُمَّ سَلَّمَ بَعْدَ ذَلِكَ‏.‏
Reference : Sahih al-Bukhari 1225
In-book reference : Book 22, Hadith 2
USC-MSA web (English) reference : Vol. 2, Book 22, Hadith 316
  (deprecated numbering scheme)
Sahih al-Bukhari 404

Narrated `Abdullah:

"Once the Prophet offered five rak`at in Zuhr prayer. He was asked, "Is there an increase in the prayer?" The Prophet said, "And what is it?" They said, "You have prayed five rak`at.' So he bent his legs and performed two prostrations (of Sahu).

حَدَّثَنَا مُسَدَّدٌ، قَالَ حَدَّثَنَا يَحْيَى، عَنْ شُعْبَةَ، عَنِ الْحَكَمِ، عَنْ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ، عَنْ عَبْدِ اللَّهِ، قَالَ صَلَّى النَّبِيُّ صلى الله عليه وسلم الظُّهْرَ خَمْسًا فَقَالُوا أَزِيدَ فِي الصَّلاَةِ قَالَ ‏"‏ وَمَا ذَاكَ ‏"‏‏.‏ قَالُوا صَلَّيْتَ خَمْسًا‏.‏ فَثَنَى رِجْلَيْهِ وَسَجَدَ سَجْدَتَيْنِ‏.‏
Reference : Sahih al-Bukhari 404
In-book reference : Book 8, Hadith 56
USC-MSA web (English) reference : Vol. 1, Book 8, Hadith 398
  (deprecated numbering scheme)
Sunan an-Nasa'i 1329
It was narrated from 'Abdullah that:
The Prophet (SAW) said the salam, then he spoke, then he performed two prostrations of forgetfulness.
أَخْبَرَنَا مُحَمَّدُ بْنُ آدَمَ، عَنْ حَفْصٍ، عَنِ الأَعْمَشِ، عَنْ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ، عَنْ عَبْدِ اللَّهِ، أَنَّ النَّبِيَّ صلى الله عليه وسلم سَلَّمَ ثُمَّ تَكَلَّمَ ثُمَّ سَجَدَ سَجْدَتَىِ السَّهْوِ ‏.‏
Grade: Sahih (Darussalam)
Reference : Sunan an-Nasa'i 1329
In-book reference : Book 13, Hadith 151
English translation : Vol. 2, Book 13, Hadith 1330
Sahih al-Bukhari 1232

Narrated Abu Huraira:

Allah's Apostle said, "When anyone of you stands for the prayers, Satan comes and puts him in doubts till he forgets how many rak`at he has prayed. So if this happens to anyone of you, he should perform two prostrations of Sahu while sitting.

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، أَخْبَرَنَا مَالِكٌ، عَنِ ابْنِ شِهَابٍ، عَنْ أَبِي سَلَمَةَ بْنِ عَبْدِ الرَّحْمَنِ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏"‏ إِنَّ أَحَدَكُمْ إِذَا قَامَ يُصَلِّي جَاءَ الشَّيْطَانُ فَلَبَسَ عَلَيْهِ حَتَّى لاَ يَدْرِيَ كَمْ صَلَّى، فَإِذَا وَجَدَ ذَلِكَ أَحَدُكُمْ فَلْيَسْجُدْ سَجْدَتَيْنِ وَهُوَ جَالِسٌ ‏"‏‏.‏
Reference : Sahih al-Bukhari 1232
In-book reference : Book 22, Hadith 10
USC-MSA web (English) reference : Vol. 2, Book 22, Hadith 324
  (deprecated numbering scheme)

Yahya related to me from Malik from Ibn Shihab from Said ibn al- Musayyab, and from Abu Salama ibn Abd ar-Rahman, the same as that.

Malik said, "Every forgetfulness which decreases from the prayer, prostrations for it come before the greeting, and every forgetfulness which is an addition to the prayer, prostrations for it come after the greeting."

وَحَدَّثَنِي عَنْ مَالِكٍ، عَنِ ابْنِ شِهَابٍ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، وَعَنْ أَبِي سَلَمَةَ بْنِ عَبْدِ الرَّحْمَنِ، مِثْلَ ذَلِكَ ‏.‏ قَالَ مَالِكٌ كُلُّ سَهْوٍ كَانَ نُقْصَانًا مِنَ الصَّلاَةِ فَإِنَّ سُجُودَهُ قَبْلَ السَّلاَمِ وَكُلُّ سَهْوٍ كَانَ زِيَادَةً فِي الصَّلاَةِ فَإِنَّ سُجُودَهُ بَعْدَ السَّلاَمِ ‏.‏
Sunnah.com reference : Book 3, Hadith 65
USC-MSA web (English) reference : Book 3, Hadith 65
Arabic reference : Book 3, Hadith 212
Sunan Abi Dawud 1025

Narrated Abdullah ibn Abbas:

The Prophet (saws) named the two prostrations of forgetfulness disgraceful for the devil.

حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ الْعَزِيزِ بْنِ أَبِي رِزْمَةَ، أَخْبَرَنَا الْفَضْلُ بْنُ مُوسَى، عَنْ عَبْدِ اللَّهِ بْنِ كَيْسَانَ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم سَمَّى سَجْدَتَىِ السَّهْوِ الْمُرْغِمَتَيْنِ ‏.‏
Grade: Sahih (Al-Albani)  صحيح   (الألباني) حكم   :
Reference : Sunan Abi Dawud 1025
In-book reference : Book 2, Hadith 636
English translation : Book 3, Hadith 1020
Sahih al-Bukhari 830

Narrated `Abdullah bin Malik bin Buhaina:

Once Allah's Apostle led us in the Zuhr prayer and got up (after the prostrations of the second rak`a) although he should have sat (for the Tashahhud). So at the end of the prayer, he prostrated twice while sitting (prostrations of Sahu).

حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، قَالَ حَدَّثَنَا بَكْرٌ، عَنْ جَعْفَرِ بْنِ رَبِيعَةَ، عَنِ الأَعْرَجِ، عَنْ عَبْدِ اللَّهِ بْنِ مَالِكٍ ابْنِ بُحَيْنَةَ، قَالَ صَلَّى بِنَا رَسُولُ اللَّهِ صلى الله عليه وسلم الظُّهْرَ فَقَامَ وَعَلَيْهِ جُلُوسٌ، فَلَمَّا كَانَ فِي آخِرِ صَلاَتِهِ سَجَدَ سَجْدَتَيْنِ وَهْوَ جَالِسٌ‏.‏
Reference : Sahih al-Bukhari 830
In-book reference : Book 10, Hadith 224
USC-MSA web (English) reference : Vol. 1, Book 12, Hadith 793
  (deprecated numbering scheme)
Sahih al-Bukhari 1226

Narrated' `Abdullah:

Once Allah's Apostle offered five rak`at in the Zuhr prayer, and somebody asked him whether there was some increase in the prayer. Allah's Apostle said, "What is that?" He said, "You have offered five rak`at." So Allah's Apostle performed two prostrations of Sahu after Taslim.

حَدَّثَنَا أَبُو الْوَلِيدِ، حَدَّثَنَا شُعْبَةُ، عَنِ الْحَكَمِ، عَنْ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ، عَنْ عَبْدِ اللَّهِ ـ رضى الله عنه ـ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم صَلَّى الظُّهْرَ خَمْسًا فَقِيلَ لَهُ أَزِيدَ فِي الصَّلاَةِ فَقَالَ ‏"‏ وَمَا ذَاكَ ‏"‏‏.‏ قَالَ صَلَّيْتَ خَمْسًا‏.‏ فَسَجَدَ سَجْدَتَيْنِ بَعْدَ مَا سَلَّمَ‏.‏
Reference : Sahih al-Bukhari 1226
In-book reference : Book 22, Hadith 3
USC-MSA web (English) reference : Vol. 2, Book 22, Hadith 317
  (deprecated numbering scheme)
Sunan Abi Dawud 1016
Abu Hurairah reported; He then made two prostration on account of forgetfulness after he had given the salutation.
حَدَّثَنَا هَارُونُ بْنُ عَبْدِ اللَّهِ، حَدَّثَنَا هَاشِمُ بْنُ الْقَاسِمِ، حَدَّثَنَا عِكْرِمَةُ بْنُ عَمَّارٍ، عَنْ ضَمْضَمِ بْنِ جَوْسٍ الْهِفَّانِيِّ، حَدَّثَنِي أَبُو هُرَيْرَةَ، بِهَذَا الْخَبَرِ قَالَ ثُمَّ سَجَدَ سَجْدَتَىِ السَّهْوِ بَعْدَ مَا سَلَّمَ ‏.‏
Grade: Hasan Sahih (Al-Albani)  حسن صحيح   (الألباني) حكم   :
Reference : Sunan Abi Dawud 1016
In-book reference : Book 2, Hadith 627
English translation : Book 2, Hadith 1011
Sunan Ibn Majah 1207
It was narrated from ‘Abdur-Rahman Al-A’raj that Ibn Buhainah told him that the Prophet (saw) stood up in the second Rak’ah of Zuhr and forgot to sit. When he had finished his prayer, and before he said the Salam, he performed the two prostrations for forgetfulness (Sahw) and said the Salam.
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا ابْنُ نُمَيْرٍ، وَابْنُ، فُضَيْلٍ وَيَزِيدُ بْنُ هَارُونَ ح وَحَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا أَبُو خَالِدٍ الأَحْمَرُ، وَيَزِيدُ بْنُ هَارُونَ، وَأَبُو مُعَاوِيَةَ كُلُّهُمْ عَنْ يَحْيَى بْنِ سَعِيدٍ، عَنْ عَبْدِ الرَّحْمَنِ الأَعْرَجِ، أَنَّ ابْنَ بُحَيْنَةَ، أَخْبَرَهُ أَنَّ النَّبِيَّ ـ صلى الله عليه وسلم ـ قَامَ فِي ثِنْتَيْنِ مِنَ الظُّهْرِ نَسِيَ الْجُلُوسَ حَتَّى إِذَا فَرَغَ مِنْ صَلاَتِهِ إِلاَّ أَنْ يُسَلِّمَ سَجَدَ سَجْدَتَىِ السَّهْوِ وَسَلَّمَ ‏.‏
Grade: Sahih (Darussalam)
Reference : Sunan Ibn Majah 1207
In-book reference : Book 5, Hadith 405
English translation : Vol. 1, Book 5, Hadith 1207
Sahih al-Bukhari 7249

Narrated `Abdullah:

The Prophet led us in Zuhr prayer and prayer five rak`at. Somebody asked him whether the prayer had been increased." He (the Prophet ) said, "And what is that?" They (the people) replied, "You have prayed five rak`at." Then the Prophet offered two prostrations (of Sahu) after he had finished his prayer with the Taslim.

حَدَّثَنَا حَفْصُ بْنُ عُمَرَ، حَدَّثَنَا شُعْبَةُ، عَنِ الْحَكَمِ، عَنْ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ، عَنْ عَبْدِ اللَّهِ، قَالَ صَلَّى بِنَا النَّبِيُّ صلى الله عليه وسلم الظُّهْرَ خَمْسًا فَقِيلَ أَزِيدَ فِي الصَّلاَةِ قَالَ ‏"‏ وَمَا ذَاكَ ‏"‏‏.‏ قَالُوا صَلَّيْتَ خَمْسًا‏.‏ فَسَجَدَ سَجْدَتَيْنِ بَعْدَ مَا سَلَّمَ‏.‏
Reference : Sahih al-Bukhari 7249
In-book reference : Book 95, Hadith 4
USC-MSA web (English) reference : Vol. 9, Book 91, Hadith 355
  (deprecated numbering scheme)
Jami` at-Tirmidhi 393
Abdullah (bin Masud) narrated:
"The Prophet (S) performed two prostrations for As-Sahw after talking."
حَدَّثَنَا هَنَّادٌ، وَمَحْمُودُ بْنُ غَيْلاَنَ، قَالاَ حَدَّثَنَا أَبُو مُعَاوِيَةَ، عَنِ الأَعْمَشِ، عَنْ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ، عَنْ عَبْدِ اللَّهِ، أَنَّ النَّبِيَّ صلى الله عليه وسلم سَجَدَ سَجْدَتَىِ السَّهْوِ بَعْدَ الْكَلاَمِ ‏.‏ قَالَ وَفِي الْبَابِ عَنْ مُعَاوِيَةَ وَعَبْدِ اللَّهِ بْنِ جَعْفَرٍ وَأَبِي هُرَيْرَةَ ‏.‏
Grade: Sahih (Darussalam)
Reference : Jami` at-Tirmidhi 393
In-book reference : Book 2, Hadith 246
English translation : Vol. 1, Book 2, Hadith 393
Narrated [Ibn 'Umar (RA)]:
(This Hadith is) attributed to the Prophet (SAW) "There is no Sahw (prostration for forgetfulness) in the prayer in time of danger." [ad-Daraqutni reported it through a weak chain of narrators].
وَعَنْهُ مَرْفُوعًا: { لَيْسَ فِي صَلَاةِ اَلْخَوْفِ سَهْوٌ } أَخْرَجَهُ اَلدَّارَقُطْنِيُّ بِإِسْنَادٍ ضَعِيفٍ 1‏ .‏
Sunnah.com reference : Book 2, Hadith 409
English translation : Book 2, Hadith 482
Arabic reference : Book 2, Hadith 484
Narrated 'Umar (RA):
The Prophet (SAW) said, "There is no (prostrations of) forgetfulness for one who is led (in prayer) by an Imam, but when the Imam forgets, both should then make prostrations due to forgetfulness." [al-Bazzar and al-Baihaqi reported it through a weak chain of narrators].
وَعَنْ عُمَرَ رَضِيَ اَللَّهُ عَنِ النَّبِيِّ ‏- صلى الله عليه وسلم ‏-قَالَ : { لَيْسَ عَلَى مَنْ خَلَفَ اَلْإِمَامَ سَهْوٌ فَإِنْ سَهَا اَلْإِمَامُ فَعَلَيْهِ وَعَلَى مَنْ خَلْفَهُ" } رَوَاهُ اَلْبَزَّارُ وَالْبَيْهَقِيُّ بِسَنَدٍ ضَعِيفٍ .‏ 1‏
Sunnah.com reference : Book 2, Hadith 239
English translation : Book 2, Hadith 333
Arabic reference : Book 2, Hadith 338
Sunan Ibn Majah 1208
It was narrated that Mughirah bin Shu’bah said:
“The Messenger of Allah (saw) said: ‘If anyone of you stands after two Rak’ah, if he has not yet stood up fully, let him sit down again, but if he has stood up fully, then let him not sit down, and let him perform two prostrations for forgetfulness (Sahw).’”
حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى، حَدَّثَنَا مُحَمَّدُ بْنُ يُوسُفَ، حَدَّثَنَا سُفْيَانُ، عَنْ جَابِرٍ، عَنِ الْمُغِيرَةِ بْنِ شُبَيْلٍ، عَنْ قَيْسِ بْنِ أَبِي حَازِمٍ، عَنِ الْمُغِيرَةِ بْنِ شُعْبَةَ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏ "‏ إِذَا قَامَ أَحَدُكُمْ مِنَ الرَّكْعَتَيْنِ فَلَمْ يَسْتَتِمَّ قَائِمًا فَلْيَجْلِسْ فَإِذَا اسْتَتَمَّ قَائِمًا فَلاَ يَجْلِسْ وَيَسْجُدْ سَجْدَتَىِ السَّهْوِ ‏"‏ ‏.‏
Grade: Da’if (Darussalam)
Reference : Sunan Ibn Majah 1208
In-book reference : Book 5, Hadith 406
English translation : Vol. 1, Book 5, Hadith 1208
Jami` at-Tirmidhi 391
There is a narrated with another chain that Abu Hurairah and ['Abdullah bin] As-Sa'id Al-Qari' would perform the prostrations of As-Sahw before the Taslim.

Abu 'Eisa said:

The Hadith of Ibn Buhainah is a Hasan [Sahih] Hadith, and this is acted upon according to some of the people of knowledge. It is the opinion of Ash-Shafi'i, he held the view that all prostrations for As-Sahw were to be performed before the Salam, saying: "This one abrogates the other Ahadith" and he mentioned that the last action of the Prophet (saws) was according to this.

Ahmad and Ishaq said: "When a man stands up after two Rak'ah, then he performs the prostrations for As-Sahw before the Salam according to the Hadith of Ibn Buhainah."

'Abdullah bin Buhainah is 'Abdullah bin Malik [so he is] Ibn Buhainah (because) Malik is his father and Buhainah is his mother.

I was informed of this by Ishaq bin Mansur from 'Ali [bin 'Abdullah] bin Al-Madini.

Abu 'Eisa said: The people of knowledge differ over when a man is to perform the prostrations of As-Sahw, is it before the Salam or after it. Some of them thought that her performs them after the Salam. This is the view of Sufyan Ath-Thawri and the people of Al-Kufah. Some of them said he performs them before the Salam. This is the view of most of the Fuqaha among the people of Al-Madinah, like Yahya bin Sa'eed, Rabi'ah, and others. This is also the saying of Ash-Shafi'i.

Some of them said when he adds to the Salat, then it is after the Salam, and when he leaves something out, then before the Salam. This is the view of Malik bin Anas.

Ahmad said: "Whatever is reported from the Prophet (saws) about the prostrations from As-Sahw then it is acted upon in either case." He saw that when one stands after Rak'ah then according to the Hadith of Ibn Buhainah, he is to perform the prostrations before the Salam. When he prays five for Zuhr, then performs the prostrations after the Salam, and if he says Salam after two Rak'ahs of Zuhr or 'Asr then he performs the prostrations after the Salam. All of them are to be acted upon depending upon the case, and in the cases where nothing is reported from the Prophet (saws), then two prostrations are performed for As-Sahw before the Salam.

Ishaq said the same as Ahmad about all of this, with the exception that he said that for every case of As-Sahw that is not mentioned from the Prophet (saws), then if it is an addition to the Salat, then prostrations are performed after the Salam, and if it is something that was left out, then the prostrations are performed before the Salam.

حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ، حَدَّثَنَا عَبْدُ الأَعْلَى، وَأَبُو دَاوُدَ قَالاَ حَدَّثَنَا هِشَامٌ، عَنْ يَحْيَى بْنِ أَبِي كَثِيرٍ، عَنْ مُحَمَّدِ بْنِ إِبْرَاهِيمَ، أَنَّ أَبَا هُرَيْرَةَ، وَالسَّائِبَ الْقَارِئَ، كَانَا يَسْجُدَانِ سَجْدَتَىِ السَّهْوِ قَبْلَ التَّسْلِيمِ ‏ .‏ قَالَ أَبُو عِيسَى حَدِيثُ ابْنِ بُحَيْنَةَ حَدِيثٌ حَسَنٌ صَحِيحٌ ‏.‏ وَالْعَمَلُ عَلَى هَذَا عِنْدَ بَعْضِ أَهْلِ الْعِلْمِ وَهُوَ قَوْلُ الشَّافِعِيِّ يَرَى سُجُودَ السَّهْوِ كُلِّهِ قَبْلَ السَّلاَمِ وَيَقُولُ هَذَا النَّاسِخُ لِغَيْرِهِ مِنَ الأَحَادِيثِ وَيَذْكُرُ أَنَّ آخِرَ فِعْلِ النَّبِيِّ صلى الله عليه وسلم كَانَ عَلَى هَذَا ‏.‏ وَقَالَ أَحْمَدُ وَإِسْحَاقُ إِذَا قَامَ الرَّجُلُ فِي الرَّكْعَتَيْنِ فَإِنَّهُ يَسْجُدُ سَجْدَتَىِ السَّهْوِ قَبْلَ السَّلاَمِ عَلَى حَدِيثِ ابْنِ بُحَيْنَةَ ‏.‏ وَعَبْدُ اللَّهِ ابْنُ بُحَيْنَةَ هُوَ عَبْدُ اللَّهِ بْنُ مَالِكٍ وَهُوَ ابْنُ بُحَيْنَةَ مَالِكٌ ...
Reference : Jami` at-Tirmidhi 391
In-book reference : Book 2, Hadith 244
English translation : Vol. 1, Book 2, Hadith 391
Mishkat al-Masabih 265
Al-A‘mash reported God’s messenger as saying, "The calamity which affects knowledge is forgetfulness, and wasting it is to convey it to those who are unworthy of it.” Darimi transmitted it in mursal form.
وَعَنِ الْأَعْمَشِ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «آفَةُ الْعِلْمِ النِّسْيَانُ وَإِضَاعَتُهُ أَنْ تُحَدِّثَ بِهِ غَيْرَ أَهْلِهِ» . رَوَاهُ الدَّارِمِيُّ مُرْسلا
  ضَعِيف   (الألباني) حكم   :
Reference : Mishkat al-Masabih 265
In-book reference : Book 2, Hadith 61
Sahih al-Bukhari 401

Narrated `Abdullah:

The Prophet prayed (and the sub-narrator Ibrahim said, "I do not know whether he prayed more or less than usual"), and when he had finished the prayers he was asked, "O Allah's Apostle! Has there been any change in the prayers?" He said, "What is it?' The people said, "You have prayed so much and so much." So the Prophet bent his legs, faced the Qibla and performed two prostration's (of Sahu) and finished his prayers with Taslim (by turning his face to right and left saying: 'As-Salamu `Alaikum- Warahmat-ullah'). When he turned his face to us he said, "If there had been anything changed in the prayer, surely I would have informed you but I am a human being like you and liable to forget like you. So if I forget remind me and if anyone of you is doubtful about his prayer, he should follow what he thinks to be correct and complete his prayer accordingly and finish it and do two prostrations (of Sahu).

حَدَّثَنَا عُثْمَانُ، قَالَ حَدَّثَنَا جَرِيرٌ، عَنْ مَنْصُورٍ، عَنْ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ، قَالَ قَالَ عَبْدُ اللَّهِ صَلَّى النَّبِيُّ صلى الله عليه وسلم ـ قَالَ إِبْرَاهِيمُ لاَ أَدْرِي زَادَ أَوْ نَقَصَ ـ فَلَمَّا سَلَّمَ قِيلَ لَهُ يَا رَسُولَ اللَّهِ، أَحَدَثَ فِي الصَّلاَةِ شَىْءٌ قَالَ ‏"‏ وَمَا ذَاكَ ‏"‏‏.‏ قَالُوا صَلَّيْتَ كَذَا وَكَذَا‏.‏ فَثَنَى رِجْلَيْهِ وَاسْتَقْبَلَ الْقِبْلَةَ، وَسَجَدَ سَجْدَتَيْنِ ثُمَّ سَلَّمَ، فَلَمَّا أَقْبَلَ عَلَيْنَا بِوَجْهِهِ قَالَ ‏"‏ إِنَّهُ لَوْ حَدَثَ فِي الصَّلاَةِ شَىْءٌ لَنَبَّأْتُكُمْ بِهِ، وَلَكِنْ إِنَّمَا أَنَا بَشَرٌ مِثْلُكُمْ، أَنْسَى كَمَا تَنْسَوْنَ، فَإِذَا نَسِيتُ فَذَكِّرُونِي، وَإِذَا شَكَّ أَحَدُكُمْ فِي صَلاَتِهِ فَلْيَتَحَرَّى الصَّوَابَ، فَلْيُتِمَّ عَلَيْهِ ثُمَّ يُسَلِّمْ، ثُمَّ يَسْجُدْ سَجْدَتَيْنِ ‏"‏‏.‏
Reference : Sahih al-Bukhari 401
In-book reference : Book 8, Hadith 52
USC-MSA web (English) reference : Vol. 1, Book 8, Hadith 394
  (deprecated numbering scheme)
Sunan an-Nasa'i 1330
It was narrated from Abu Hurairah that:
"The Messenger of Allah (SAW) said the salam then he performed two prostrations of forgetfulness while he was still sitting, then he said the salam." He said: He mentioned it in the hadith of Dhul-Yadain.
أَخْبَرَنَا سُوَيْدُ بْنُ نَصْرٍ، عَنْ عَبْدِ اللَّهِ بْنِ الْمُبَارَكِ، عَنْ عِكْرِمَةَ بْنِ عَمَّارٍ، قَالَ حَدَّثَنَا ضَمْضَمُ بْنُ جَوْسٍ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم سَلَّمَ ثُمَّ سَجَدَ سَجْدَتَىِ السَّهْوِ وَهُوَ جَالِسٌ ثُمَّ سَلَّمَ ‏.‏ قَالَ ذَكَرَهُ فِي حَدِيثِ ذِي الْيَدَيْنِ ‏.‏
Grade: Hasan (Darussalam)
Reference : Sunan an-Nasa'i 1330
In-book reference : Book 13, Hadith 152
English translation : Vol. 2, Book 13, Hadith 1331
Sahih al-Bukhari 6663

Narrated `Aisha:

regarding: 'Allah will not call you to account for that which is unintentional in your oaths...' (2.225) This Verse was revealed concerning such oath formulas as: 'No, by Allah!' and 'Yes, by Allah!' something against his oath due to forgetfulness should he make expiation?). And the Statement of Allah: 'And there is no blame on you if you make a mistake therein.' (33.5) And Allah said:-- '(Moses said to Khadir): Call me not to account for what I forgot.' (18.73)

حَدَّثَنِي مُحَمَّدُ بْنُ الْمُثَنَّى، حَدَّثَنَا يَحْيَى، عَنْ هِشَامٍ، قَالَ أَخْبَرَنِي أَبِي، عَنْ عَائِشَةَ ـ رضى الله عنها ‏‏{‏لاَ يُؤَاخِذُكُمُ اللَّهُ بِاللَّغْوِ‏}‏ قَالَ قَالَتْ أُنْزِلَتْ فِي قَوْلِهِ لاَ، وَاللَّهِ بَلَى وَاللَّهِ‏.‏
Reference : Sahih al-Bukhari 6663
In-book reference : Book 83, Hadith 41
USC-MSA web (English) reference : Vol. 8, Book 78, Hadith 656
  (deprecated numbering scheme)
Sunan an-Nasa'i 1331
It was narrated from 'Imran bin Husain that:
The Prophet (SAW) prayed three (rak'ahs) then said the taslim. Al-Khirbaq said: "You prayed three." So he led them in praying the remaining rak'ah, then he said the taslim, then he did the two prostrations of forgetfulness, then he said the taslim (again).
أَخْبَرَنَا يَحْيَى بْنُ حَبِيبِ بْنِ عَرَبِيٍّ، قَالَ حَدَّثَنَا حَمَّادٌ، قَالَ حَدَّثَنَا خَالِدٌ، عَنْ أَبِي قِلاَبَةَ، عَنْ أَبِي الْمُهَلَّبِ، عَنْ عِمْرَانَ بْنِ حُصَيْنٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم صَلَّى ثَلاَثًا ثُمَّ سَلَّمَ فَقَالَ الْخِرْبَاقُ إِنَّكَ صَلَّيْتَ ثَلاَثًا ‏.‏ فَصَلَّى بِهِمُ الرَّكْعَةَ الْبَاقِيَةَ ثُمَّ سَلَّمَ ثُمَّ سَجَدَ سَجْدَتَىِ السَّهْوِ ثُمَّ سَلَّمَ ‏.‏
Grade: Sahih (Darussalam)
Reference : Sunan an-Nasa'i 1331
In-book reference : Book 13, Hadith 153
English translation : Vol. 2, Book 13, Hadith 1332
Sunan Abi Dawud 2398
Narrated Abu Hurairah:
A man came to the Prophet (saws) and said: Messenger of Allah, I ate and drank in forgetfulness when I was fasting. Hie said: Allah had fed you and given you drink.
حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، حَدَّثَنَا حَمَّادٌ، عَنْ أَيُّوبَ، وَحَبِيبٌ، وَهِشَامٌ، عَنْ مُحَمَّدِ بْنِ سِيرِينَ، عَنْ أَبِي هُرَيْرَةَ، قَالَ جَاءَ رَجُلٌ إِلَى النَّبِيِّ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ إِنِّي أَكَلْتُ وَشَرِبْتُ نَاسِيًا وَأَنَا صَائِمٌ ‏.‏ فَقَالَ ‏" ‏ أَطْعَمَكَ اللَّهُ وَسَقَاكَ ‏"‏ ‏.‏
Grade: Sahih (Al-Albani)  صحيح   (الألباني) حكم   :
Reference : Sunan Abi Dawud 2398
In-book reference : Book 14, Hadith 86
English translation : Book 13, Hadith 2392
Sahih Muslim 574 b

Imran b. Husain reported:

The Messenger of Allah (may peace be upon him) said three rak'ahs of the 'Asr prayer and then got up and went to his apartment. A man possessing large arms stood up and said: Messenger of Allah, bias the player been shortened? He came out angrily, and said the rak'ah which he had omitted and then gave salutation. then performed two prostrations of forgetfulness and then gave salutation.
وَحَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، أَخْبَرَنَا عَبْدُ الْوَهَّابِ الثَّقَفِيُّ، حَدَّثَنَا خَالِدٌ، - وَهُوَ الْحَذَّاءُ - عَنْ أَبِي قِلاَبَةَ، عَنْ أَبِي الْمُهَلَّبِ، عَنْ عِمْرَانَ بْنِ الْحُصَيْنِ، قَالَ سَلَّمَ رَسُولُ اللَّهِ صلى الله عليه وسلم فِي ثَلاَثِ رَكَعَاتٍ مِنَ الْعَصْرِ ثُمَّ قَامَ فَدَخَلَ الْحُجْرَةَ فَقَامَ رَجُلٌ بَسِيطُ الْيَدَيْنِ فَقَالَ أَقُصِرَتِ الصَّلاَةُ يَا رَسُولَ اللَّهِ ‏.‏ فَخَرَجَ مُغْضَبًا فَصَلَّى الرَّكْعَةَ الَّتِي كَانَ تَرَكَ ثُمَّ سَلَّمَ ثُمَّ سَجَدَ سَجْدَتَىِ السَّهْوِ ثُمَّ سَلَّمَ ‏.‏
Reference : Sahih Muslim 574b
In-book reference : Book 5, Hadith 132
USC-MSA web (English) reference : Book 4, Hadith 1188
  (deprecated numbering scheme)
Sunan an-Nasa'i 1243
It was narrated that 'Abdullah said:
"The Messenger of Allah (SAW) prayed and did more or less (rak'ahs). When he had said the salam we said: 'O Messenger of Allah (SAW), has there been some change concerning the prayer?' He said: 'Why are you asking?' So we told him what he had done. He turned back toward the Qiblah and prostrated two prostrations of forgetfulness, then he turned to face us and said: 'If there had been some change concerning the prayer I would have told you.' Then he said: 'Rather I am a human being and I forget as you forget. If any one of you is not sure about his prayer, let him estimate what he thinks is correct, and complete his prayer on that basis, then say the taslim and prostrate two prostrations of forgetfulness.'"
أَخْبَرَنَا الْحَسَنُ بْنُ إِسْمَاعِيلَ بْنِ سُلَيْمَانَ الْمُجَالِدِيُّ، قَالَ حَدَّثَنَا الْفُضَيْلُ، - يَعْنِي ابْنَ عِيَاضٍ - عَنْ مَنْصُورٍ، عَنْ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ، عَنْ عَبْدِ اللَّهِ، قَالَ صَلَّى رَسُولُ اللَّهِ صلى الله عليه وسلم صَلاَةً فَزَادَ فِيهَا أَوْ نَقَصَ فَلَمَّا سَلَّمَ قُلْنَا يَا نَبِيَّ اللَّهِ هَلْ حَدَثَ فِي الصَّلاَةِ شَىْءٌ قَالَ ‏"‏ وَمَا ذَاكَ ‏"‏ ‏.‏ فَذَكَرْنَا لَهُ الَّذِي فَعَلَ فَثَنَى رِجْلَهُ فَاسْتَقْبَلَ الْقِبْلَةَ فَسَجَدَ سَجْدَتَىِ السَّهْوِ ثُمَّ أَقْبَلَ عَلَيْنَا بِوَجْهِهِ فَقَالَ ‏ "‏ لَوْ حَدَثَ فِي الصَّلاَةِ شَىْءٌ لأَنْبَأْتُكُمْ بِهِ ‏"‏ ‏.‏ ثُمَّ قَالَ ‏"‏ إِنَّمَا أَنَا بَشَرٌ أَنْسَى كَمَا تَنْسَوْنَ فَأَيُّكُمْ شَكَّ فِي صَلاَتِهِ شَيْئًا فَلْيَتَحَرَّ الَّذِي يَرَى أَنَّهُ صَوَابٌ ثُمَّ يُسَلِّمْ ثُمَّ يَسْجُدْ سَجْدَتَىِ السَّهْوِ ‏"‏ ‏.‏
Grade: Sahih (Darussalam)
Reference : Sunan an-Nasa'i 1243
In-book reference : Book 13, Hadith 65
English translation : Vol. 2, Book 13, Hadith 1244
Sunan Ibn Majah 1218
It was narrated from ‘Alqamah that Ibn Mas’ud prostrated twice for the prostrations of forgetfulness after the Salam, and he mentioned that the Prophet (saw) did that.”
حَدَّثَنَا أَبُو بَكْرِ بْنُ خَلاَّدٍ، حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنْ مَنْصُورٍ، عَنْ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ، أَنَّ ابْنَ مَسْعُودٍ، سَجَدَ سَجْدَتَىِ السَّهْوِ بَعْدَ السَّلاَمِ وَذَكَرَ أَنَّ النَّبِيَّ ـ صلى الله عليه وسلم ـ فَعَلَ ذَلِكَ ‏.‏
Grade: Sahih (Darussalam)
Reference : Sunan Ibn Majah 1218
In-book reference : Book 5, Hadith 416
English translation : Vol. 1, Book 5, Hadith 1218
Ibn 'Abbas reported Allah's messenger as saying, "Indeed, Allah has pardoned my nation for mistakes, forgetfulness, and what they are forced to do against their will." Ibn Majah and Baihaqi transmitted it.
وَعَنِ ابْنِ عَبَّاسٍ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «إِنَّ اللَّهَ تَجَاوَزَ عَنْ أُمَّتِي الْخَطَأَ وَالنِّسْيَانَ وَمَا اسْتُكْرِهُوا عَلَيْهِ» . رَوَاهُ ابْن مَاجَه وَالْبَيْهَقِيّ
  صَحِيح لطرقه   (الألباني) حكم   :
Sunnah.com reference : Book 30, Hadith 303
English translation : Book 26, Hadith 0
Arabic reference : Book 30, Hadith 6293
Sunan Abi Dawud 1012
This tradition has also been transmitted by Abu Hurairah through a different chain of narrators. This version goes:
he did not make two prostrations (at the end of prayer) due to forgetfulness until Allah gave him satisfaction about it.
حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى بْنِ فَارِسٍ، حَدَّثَنَا مُحَمَّدُ بْنُ كَثِيرٍ، عَنِ الأَوْزَاعِيِّ، عَنِ الزُّهْرِيِّ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، وَأَبِي، سَلَمَةَ وَعُبَيْدِ اللَّهِ بْنِ عَبْدِ اللَّهِ عَنْ أَبِي هُرَيْرَةَ، بِهَذِهِ الْقِصَّةِ قَالَ وَلَمْ يَسْجُدْ سَجْدَتَىِ السَّهْوِ حَتَّى يَقَّنَهُ اللَّهُ ذَلِكَ ‏.‏
Grade: Da'if (Al-Albani)  ضعيف   (الألباني) حكم   :
Reference : Sunan Abi Dawud 1012
In-book reference : Book 2, Hadith 623
English translation : Book 2, Hadith 1007
Sahih al-Bukhari 6051

Narrated Abu Huraira:

The Prophet led us in the Zuhr prayer, offering only two rak`at and then (finished it) with Taslim, and went to a piece of wood in front of the mosque and put his hand over it. Abu Bakr and `Umar were also present among the people on that day but dared not talk to him (about his unfinished prayer). And the hasty people went away, wondering. "Has the prayer been shortened" Among the people there was a man whom the Prophet used to call Dhul-Yadain (the longarmed). He said, "O Allah's Prophet! Have you forgotten or has the prayer been shortened?" The Prophet said, "Neither have I forgotten, nor has it been shortened." They (the people) said, "Surely, you have forgotten, O Allah's Apostle!" The Prophet said, Dhul-Yadain has told the truth." So the Prophet got up and offered other two rak`at and finished his prayer with Taslim. Then he said Takbir, performed a prostration of ordinary duration or longer, then he raised his head and said Takbir and performed another prostration of ordinary duration or longer and then raised his head and said Takbir (i.e. he performed the two prostrations of Sahu, i.e., forgetfulness).

حَدَّثَنَا حَفْصُ بْنُ عُمَرَ، حَدَّثَنَا يَزِيدُ بْنُ إِبْرَاهِيمَ، حَدَّثَنَا مُحَمَّدٌ، عَنْ أَبِي هُرَيْرَةَ، صَلَّى بِنَا النَّبِيُّ صلى الله عليه وسلم الظُّهْرَ رَكْعَتَيْنِ، ثُمَّ سَلَّمَ، ثُمَّ قَامَ إِلَى خَشَبَةٍ فِي مُقَدَّمِ الْمَسْجِدِ، وَوَضَعَ يَدَهُ عَلَيْهَا، وَفِي الْقَوْمِ يَوْمَئِذٍ أَبُو بَكْرٍ وَعُمَرُ، فَهَابَا أَنْ يُكَلِّمَاهُ، وَخَرَجَ سَرَعَانُ النَّاسِ فَقَالُوا قَصُرَتِ الصَّلاَةُ‏.‏ وَفِي الْقَوْمِ رَجُلٌ كَانَ النَّبِيُّ صلى الله عليه وسلم يَدْعُوهُ ذَا الْيَدَيْنِ فَقَالَ يَا نَبِيَّ اللَّهِ أَنَسِيتَ أَمْ قَصُرَتْ‏.‏ فَقَالَ ‏"‏ لَمْ أَنْسَ وَلَمْ تَقْصُرْ ‏"‏‏.‏ قَالُوا بَلْ نَسِيتَ يَا رَسُولَ اللَّهِ‏.‏ قَالَ ‏"‏ صَدَقَ ذُو الْيَدَيْنِ ‏"‏‏.‏ فَقَامَ فَصَلَّى رَكْعَتَيْنِ ثُمَّ سَلَّمَ، ثُمَّ كَبَّرَ، فَسَجَدَ مِثْلَ سُجُودِهِ أَوْ أَطْوَلَ، ثُمَّ رَفَعَ رَأْسَهُ وَكَبَّرَ، ثُمَّ وَضَعَ مِثْلَ سُجُودِهِ أَوْ أَطْوَلَ، ثُمَّ رَفَعَ رَأْسَهُ وَكَبَّرَ‏.‏
Reference : Sahih al-Bukhari 6051
In-book reference : Book 78, Hadith 81
USC-MSA web (English) reference : Vol. 8, Book 73, Hadith 77
  (deprecated numbering scheme)
Sunan Ibn Majah 2043
It was narrated from Abu Dharr Al-Ghifari that the Messenger of Allah (SAW) said:
Allah has forgiven for me my nation their mistakes and forgetfulness, and what they are forced to do."
حَدَّثَنَا إِبْرَاهِيمُ بْنُ مُحَمَّدِ بْنِ يُوسُفَ الْفِرْيَابِيُّ، حَدَّثَنَا أَيُّوبُ بْنُ سُوَيْدٍ، حَدَّثَنَا أَبُو بَكْرٍ الْهُذَلِيُّ، عَنْ شَهْرِ بْنِ حَوْشَبٍ، عَنْ أَبِي ذَرٍّ الْغِفَارِيِّ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏ "‏ إِنَّ اللَّهَ تَجَاوَزَ عَنْ أُمَّتِي الْخَطَأَ وَالنِّسْيَانَ وَمَا اسْتُكْرِهُوا عَلَيْهِ ‏"‏ ‏.‏
Grade: Sahih (Darussalam)
Reference : Sunan Ibn Majah 2043
In-book reference : Book 10, Hadith 28
English translation : Vol. 3, Book 10, Hadith 2043
Sahih Muslim 572 k

'Abdullah (b. Mas'ud) reported:

The Messenger of Allah (may peace be upon him) led us five (rak'ahs in prayer). We said: Messenger of Allah, has the prayer been extended? He said: What is the matter? They said: You have said five (rak'ahs). He (the Holy Prophet) said: Verily I am a human being like you. I remember as you remember and I forget just as you forget. He then performed two prostrations as (compensation of) forgetfulness.
وَحَدَّثَنَاهُ عَوْنُ بْنُ سَلاَّمٍ الْكُوفِيُّ، أَخْبَرَنَا أَبُو بَكْرٍ النَّهْشَلِيُّ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ الأَسْوَدِ، عَنْ أَبِيهِ، عَنْ عَبْدِ اللَّهِ، قَالَ صَلَّى بِنَا رَسُولُ اللَّهِ صلى الله عليه وسلم خَمْسًا فَقُلْنَا يَا رَسُولَ اللَّهِ أَزِيدَ فِي الصَّلاَةِ قَالَ ‏"‏ وَمَا ذَاكَ ‏"‏ ‏.‏ قَالُوا صَلَّيْتَ خَمْسًا ‏.‏ قَالَ ‏"‏ إِنَّمَا أَنَا بَشَرٌ مِثْلُكُمْ أَذْكُرُ كَمَا تَذْكُرُونَ وَأَنْسَى كَمَا تَنْسَوْنَ ‏"‏ ‏.‏ ثُمَّ سَجَدَ سَجْدَتَىِ السَّهْوِ ‏.‏
Reference : Sahih Muslim 572k
In-book reference : Book 5, Hadith 122
USC-MSA web (English) reference : Book 4, Hadith 1178
  (deprecated numbering scheme)
Sunan Ibn Majah 2045
It was narrated from Ibn 'Abbas that the Prophet (SAW) said :
"Allah has forgiven my nation for mistakes and forgetfulness, and what they are forced to do."
حَدَّثَنَا مُحَمَّدُ بْنُ الْمُصَفَّى الْحِمْصِيُّ، حَدَّثَنَا الْوَلِيدُ بْنُ مُسْلِمٍ، حَدَّثَنَا الأَوْزَاعِيُّ، عَنْ عَطَاءٍ، عَنِ ابْنِ عَبَّاسٍ، عَنِ النَّبِيِّ ـ صلى الله عليه وسلم ـ قَالَ ‏ "‏ إِنَّ اللَّهَ وَضَعَ عَنْ أُمَّتِي الْخَطَأَ وَالنِّسْيَانَ وَمَا اسْتُكْرِهُوا عَلَيْهِ ‏"‏ ‏.‏
Grade: Sahih (Darussalam)
Reference : Sunan Ibn Majah 2045
In-book reference : Book 10, Hadith 30
English translation : Vol. 3, Book 10, Hadith 2045
Sahih al-Bukhari 6670

Narrated `Abdullah bin Buhaina:

Once Allah's Apostle led us in prayer, and after finishing the first two rak`at, got up (instead of sitting for at-Tahiyyat) and then carried on with the prayer. When he had finished his prayer, the people were waiting for him to say Taslim, but before saying Tasiim, he said Takbir and prostrated; then he raised his head, and saying Takbir, he prostrated (SAHU) and then raised his head and finished his prayer with Taslim.

حَدَّثَنَا آدَمُ بْنُ أَبِي إِيَاسٍ، حَدَّثَنَا ابْنُ أَبِي ذِئْبٍ، عَنِ الزُّهْرِيِّ، عَنِ الأَعْرَجِ، عَنْ عَبْدِ اللَّهِ ابْنِ بُحَيْنَةَ، قَالَ صَلَّى بِنَا النَّبِيُّ صلى الله عليه وسلم فَقَامَ فِي الرَّكْعَتَيْنِ الأُولَيَيْنِ قَبْلَ أَنْ يَجْلِسَ، فَمَضَى فِي صَلاَتِهِ، فَلَمَّا قَضَى صَلاَتَهُ انْتَظَرَ النَّاسُ تَسْلِيمَهُ، وَسَجَدَ قَبْلَ أَنْ يُسَلِّمَ، ثُمَّ رَفَعَ رَأْسَهُ، ثُمَّ كَبَّرَ وَسَجَدَ، ثُمَّ رَفَعَ رَأْسَهُ وَسَلَّمَ‏.‏
Reference : Sahih al-Bukhari 6670
In-book reference : Book 83, Hadith 48
USC-MSA web (English) reference : Vol. 8, Book 78, Hadith 663
  (deprecated numbering scheme)
Sunan Abi Dawud 1038

Narrated Thawban:

The Prophet (saws) said: For each forgetfulness there are two prostrations after giving the salutation.

No one except Amr (ibn Uthman) mentioned the words "from his father" (in the chain AbdurRahman ibn Jubayr ibn Nufayr from Thawban).

حَدَّثَنَا عَمْرُو بْنُ عُثْمَانَ، وَالرَّبِيعُ بْنُ نَافِعٍ، وَعُثْمَانُ بْنُ أَبِي شَيْبَةَ، وَشُجَاعُ بْنُ مَخْلَدٍ، - بِمَعْنَى الإِسْنَادِ - أَنَّ ابْنَ عَيَّاشٍ، حَدَّثَهُمْ عَنْ عُبَيْدِ اللَّهِ بْنِ عُبَيْدٍ الْكَلاَعِيِّ، عَنْ زُهَيْرٍ، - يَعْنِي ابْنَ سَالِمٍ الْعَنْسِيِّ - عَنْ عَبْدِ الرَّحْمَنِ بْنِ جُبَيْرِ بْنِ نُفَيْرٍ، قَالَ عَمْرٌو وَحْدَهُ عَنْ أَبِيهِ، عَنْ ثَوْبَانَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏"‏ لِكُلِّ سَهْوٍ سَجْدَتَانِ بَعْدَ مَا يُسَلِّمُ ‏" ‏ ‏.‏ لَمْ يَذْكُرْ عَنْ أَبِيهِ ‏.‏ غَيْرُ عَمْرٍو ‏.‏
Grade: Hasan (Al-Albani)  حسن   (الألباني) حكم   :
Reference : Sunan Abi Dawud 1038
In-book reference : Book 2, Hadith 649
English translation : Book 3, Hadith 1033

Yahya related to me from Malik from Nafi that Abdullah ibn Umar, when questioned about forgetfulness in the prayer, said, "If you think that you have forgotten part of the prayer, then pray it."

وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ نَافِعٍ، أَنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ، كَانَ إِذَا سُئِلَ عَنِ النِّسْيَانِ، فِي الصَّلاَةِ قَالَ لِيَتَوَخَّ أَحَدُكُمُ الَّذِي يَظُنُّ أَنَّهُ نَسِيَ مِنْ صَلاَتِهِ فَلْيُصَلِّهِ ‏.‏
Sunnah.com reference : Book 3, Hadith 69
USC-MSA web (English) reference : Book 3, Hadith 69
Arabic reference : Book 3, Hadith 216
Sunan an-Nasa'i 1258
It was narrated that Ibrahim said:
"Alqamah prayed five (rak'ahs) and when he said the taslim, Ibrahim bin Suwaid said : 'O Abu Shibl, you prayed five!' He said: 'Is that true, O odd-eyed one?' Then he prostrated two prostrations of forgetfulness, then he said: 'This is what the Messenger of Allah (SAW) did.'"
أَخْبَرَنَا سُوَيْدُ بْنُ نَصْرٍ، قَالَ أَنْبَأَنَا عَبْدُ اللَّهِ، عَنْ سُفْيَانَ، عَنِ الْحَسَنِ بْنِ عُبَيْدِ اللَّهِ، عَنْ إِبْرَاهِيمَ، أَنَّ عَلْقَمَةَ، صَلَّى خَمْسًا فَلَمَّا سَلَّمَ قَالَ إِبْرَاهِيمُ بْنُ سُوَيْدٍ يَا أَبَا شِبْلٍ صَلَّيْتَ خَمْسًا ‏.‏ فَقَالَ أَكَذَلِكَ يَا أَعْوَرُ فَسَجَدَ سَجْدَتَىِ السَّهْوِ ثُمَّ قَالَ هَكَذَا فَعَلَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏.‏
Grade: Sahih (Darussalam)
Reference : Sunan an-Nasa'i 1258
In-book reference : Book 13, Hadith 80
English translation : Vol. 2, Book 13, Hadith 1259
Sunan Abi Dawud 1021
This tradition has also been transmitted by ‘Abd Allah (b. Mas’ud) through a different chain of narrators. This version goes; when one of you forgets (in his prayer), he should perform two prostrations. Then he turned away, and performed two prostrations (due to forgetfulness).

Abu Dawud said:

The narrator Husain also reported it like al-A'mash.

حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ نُمَيْرٍ، حَدَّثَنَا أَبِي، حَدَّثَنَا الأَعْمَشُ، عَنْ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ، عَنْ عَبْدِ اللَّهِ، بِهَذَا قَالَ ‏"‏ فَإِذَا نَسِيَ أَحَدُكُمْ فَلْيَسْجُدْ سَجْدَتَيْنِ ‏"‏ ‏.‏ ثُمَّ تَحَوَّلَ فَسَجَدَ سَجْدَتَيْنِ ‏.‏ قَالَ أَبُو دَاوُدَ رَوَاهُ حُصَيْنٌ نَحْوَ حَدِيثِ الأَعْمَشِ ‏.‏
Grade: Sahih (Al-Albani)  صحيح   (الألباني) حكم   :
Reference : Sunan Abi Dawud 1021
In-book reference : Book 2, Hadith 632
English translation : Book 2, Hadith 1016
And in another narration:
"and he did not prostrate till Allah made him certain of this (i.e. as-Sahw)."
وَهِيَ فِي رِوَايَةٍ لَهُ : { وَلَمْ يَسْجُدْ حَتَّى يَقَّنَهُ اَللَّهُ تَعَالَى ذَلِكَ } .‏ 1‏
Sunnah.com reference : Book 2, Hadith 231
English translation : Book 2, Hadith 0
Arabic reference : Book 2, Hadith 331
Sahih al-Bukhari 7250

Narrated Abu Huraira:

Allah's Apostle finished his prayer after offerings two rak`at only. Dhul-Yaddain asked him whether the prayer had been reduced, or you had forgotten?" The Prophet said, "Is Dhul-Yaddain speaking the truth?" The people said, "Yes." Then Allah's Apostle stood up and performed another two rak`at and then finished prayer with Taslim, and then said the Takbir and performed a prostration similar to or longer than his ordinary prostrations; then he raised his head, said Takbir and prostrated and then raised his head (Sahu prostrations).

حَدَّثَنَا إِسْمَاعِيلُ، حَدَّثَنِي مَالِكٌ، عَنْ أَيُّوبَ، عَنْ مُحَمَّدٍ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم انْصَرَفَ مِنِ اثْنَتَيْنِ فَقَالَ لَهُ ذُو الْيَدَيْنِ أَقَصُرَتِ الصَّلاَةُ يَا رَسُولَ اللَّهِ، أَمْ نَسِيتَ فَقَالَ ‏"‏ أَصَدَقَ ذُو الْيَدَيْنِ ‏"‏‏.‏ فَقَالَ النَّاسُ نَعَمْ‏.‏ فَقَامَ رَسُولُ اللَّهِ صلى الله عليه وسلم فَصَلَّى رَكْعَتَيْنِ أُخْرَيَيْنِ، ثُمَّ سَلَّمَ، ثُمَّ كَبَّرَ، ثُمَّ سَجَدَ مِثْلَ سُجُودِهِ أَوْ أَطْوَلَ، ثُمَّ رَفَعَ، ثُمَّ كَبَّرَ، فَسَجَدَ مِثْلَ سُجُودِهِ، ثُمَّ رَفَعَ‏.‏
Reference : Sahih al-Bukhari 7250
In-book reference : Book 95, Hadith 5
USC-MSA web (English) reference : Vol. 9, Book 91, Hadith 356
  (deprecated numbering scheme)
Sunan Abi Dawud 1017
Ibn ‘Umar said :
The Messenger of Allah (may peace be upon him) led us in prayer and gave the salutation after two rakahs of prayer. He narrated this tradition like that of Ibn Sirin from Abu Hurairah. This version adds; he gave the salutation and prostrated two prostrations due to forgetfulness.
حَدَّثَنَا أَحْمَدُ بْنُ مُحَمَّدِ بْنِ ثَابِتٍ، حَدَّثَنَا أَبُو أُسَامَةَ، ح وَحَدَّثَنَا مُحَمَّدُ بْنُ الْعَلاَءِ، أَخْبَرَنَا أَبُو أُسَامَةَ، أَخْبَرَنِي عُبَيْدُ اللَّهِ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، قَالَ صَلَّى بِنَا رَسُولُ اللَّهِ صلى الله عليه وسلم فَسَلَّمَ فِي الرَّكْعَتَيْنِ ‏.‏ فَذَكَرَ نَحْوَ حَدِيثِ ابْنِ سِيرِينَ عَنْ أَبِي هُرَيْرَةَ قَالَ ثُمَّ سَجَدَ سَجْدَتَىِ السَّهْوِ ‏.‏
Grade: Sahih (Al-Albani)  صحيح   (الألباني) حكم   :
Reference : Sunan Abi Dawud 1017
In-book reference : Book 2, Hadith 628
English translation : Book 2, Hadith 1012
Sunan Ibn Majah 1673
It was narrated from Abu Hurairah that the Messenger of Allah (saw) said:
"Whoever eats out of forgetfulness while fasting, let him complete his fast, for it is Allah Who has fed him and given him to drink."
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا أَبُو أُسَامَةَ، عَنْ عَوْفٍ، عَنْ خِلاَسٍ، وَمُحَمَّدِ بْنِ سِيرِينَ، عَنْ أَبِي هُرَيْرَةَ، قَالَ: قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏ "‏ مَنْ أَكَلَ نَاسِيًا وَهُوَ صَائِمٌ فَلْيُتِمَّ صَوْمَهُ فَإِنَّمَا أَطْعَمَهُ اللَّهُ وَسَقَاهُ ‏"‏ ‏.‏
Grade: Sahih (Darussalam)
Reference : Sunan Ibn Majah 1673
In-book reference : Book 7, Hadith 36
English translation : Vol. 1, Book 7, Hadith 1673
Sahih al-Bukhari 1227

Narrated Abu Huraira:

The Prophet led us in the `Asr or the Zuhr prayer and finished it with Taslim. Dhul-Yadain said to him, "O Allah's Apostle! Has the prayer been reduced?" The Prophet asked his companions in the affirmative. So Allah's Apostle I offered two more rak`at and then performed two prostrations (of Sahu). Sa`d said, "I saw that 'Urwa bin Az-Zubair had offered two rak`at in the Maghrib prayer and finished it with Taslim. He then talked (and when he was informed about it) he completed the rest of his prayer and performed two prostrations, and said, 'The Prophet prayed like this.' "

حَدَّثَنَا آدَمُ، حَدَّثَنَا شُعْبَةُ، عَنْ سَعْدِ بْنِ إِبْرَاهِيمَ، عَنْ أَبِي سَلَمَةَ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ قَالَ صَلَّى بِنَا النَّبِيُّ صلى الله عليه وسلم الظُّهْرَ أَوِ الْعَصْرَ فَسَلَّمَ، فَقَالَ لَهُ ذُو الْيَدَيْنِ الصَّلاَةُ يَا رَسُولَ اللَّهَ أَنَقَصَتْ فَقَالَ النَّبِيُّ صلى الله عليه وسلم لأَصْحَابِهِ ‏"‏ أَحَقٌّ مَا يَقُولُ ‏"‏‏.‏ قَالُوا نَعَمْ‏.‏ فَصَلَّى رَكْعَتَيْنِ أُخْرَيَيْنِ ثُمَّ سَجَدَ سَجْدَتَيْنِ‏.‏ قَالَ سَعْدٌ وَرَأَيْتُ عُرْوَةَ بْنَ الزُّبَيْرِ صَلَّى مِنَ الْمَغْرِبِ رَكْعَتَيْنِ فَسَلَّمَ وَتَكَلَّمَ ثُمَّ صَلَّى مَا بَقِيَ وَسَجَدَ سَجْدَتَيْنِ وَقَالَ هَكَذَا فَعَلَ النَّبِيُّ صلى الله عليه وسلم‏.‏
Reference : Sahih al-Bukhari 1227
In-book reference : Book 22, Hadith 4
USC-MSA web (English) reference : Vol. 2, Book 22, Hadith 318
  (deprecated numbering scheme)
Al-Hakim transmitted on the authority of Abu Hurairah, “Whoever breaks his fast during Ramadan due to forgetfulness is not to make up for the day later or perform an expiation.” It is a sound hadith.
وَلِلْحَاكِمِ: { مَنْ أَفْطَرَ فِي رَمَضَانَ نَاسِيًا فَلَا قَضَاءَ عَلَيْهِ وَلَا كَفَّارَةَ } وَهُوَ صَحِيحٌ 1‏ .‏
Sunnah.com reference : Book 5, Hadith 21
English translation : Book 5, Hadith 691
Arabic reference : Book 5, Hadith 670
Sahih al-Bukhari 2728

Narrated Ubai bin Ka`b:

Allah's Apostle said, "Moses the Apostle of Allah," and then he narrated the whole story about him. Al-Khadir said to Moses, "Did not I tell you that you can have no patience with me." (18.72). Moses then violated the agreement for the first time because of forgetfulness, then Moses promised that if he asked Al-Khadir about anything, the latter would have the right to desert him. Moses abided by that condition and on the third occasion he intentionally asked Al-Khadir and caused that condition to be applied. The three occasions referred to above are referred to by the following Verses: "Call me not to account for forgetting And be not hard upon me." (18.73) "Then they met a boy and Khadir killed him." (18.74) "Then they proceeded and found a wall which was on the verge of falling and Khadir set it up straight." (18.77)

حَدَّثَنَا إِبْرَاهِيمُ بْنُ مُوسَى، أَخْبَرَنَا هِشَامٌ، أَنَّ ابْنَ جُرَيْجٍ، أَخْبَرَهُ قَالَ أَخْبَرَنِي يَعْلَى بْنُ مُسْلِمٍ، وَعَمْرُو بْنُ دِينَارٍ، عَنْ سَعِيدِ بْنِ جُبَيْرٍ، يَزِيدُ أَحَدُهُمَا عَلَى صَاحِبِهِ وَغَيْرُهُمَا قَدْ سَمِعْتُهُ يُحَدِّثُهُ عَنْ سَعِيدِ بْنِ جُبَيْرٍ قَالَ إِنَّا لَعِنْدَ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ قَالَ حَدَّثَنِي أُبَىُّ بْنُ كَعْبٍ قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏" ‏ مُوسَى رَسُولُ اللَّهِ ‏"‏ فَذَكَرَ الْحَدِيثَ ‏‏{‏قَالَ أَلَمْ أَقُلْ إِنَّكَ لَنْ تَسْتَطِيعَ مَعِيَ صَبْرًا‏}‏ كَانَتِ الأُولَى نِسْيَانًا، وَالْوُسْطَى شَرْطًا، وَالثَّالِثَةُ عَمْدًا ‏‏{‏قَالَ لاَ تُؤَاخِذْنِي بِمَا نَسِيتُ وَلاَ تُرْهِقْنِي مِنْ أَمْرِي عُسْرًا‏}‏‏.‏ ‏‏{‏لَقِيَا غُلاَمًا فَقَتَلَهُ‏}‏ فَانْطَلَقَا فَوَجَدَا جِدَارًا يُرِيدُ ...
Reference : Sahih al-Bukhari 2728
In-book reference : Book 54, Hadith 16
USC-MSA web (English) reference : Vol. 3, Book 50, Hadith 888
  (deprecated numbering scheme)
Mishkat al-Masabih 1020
Al-Mughira b. Shu'ba reported God’s Messenger as saying, “When an imam stands up at the end of two rak'as, if he remembers before standing straight up he should sit down, but if he stands straight up he must not sit down, but perform the two prostrations of forgetfulness.” Abu Dawud and Ibn Majah transmitted it.
وَعَنِ الْمُغِيرَةِ بْنِ شُعْبَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا قَامَ الْإِمَامُ فِي الرَّكْعَتَيْنِ فَإِنْ ذَكَرَ قَبْلَ أَنْ يَسْتَوِي قَائِما فليجلس وَإِنِ اسْتَوَى قَائِمًا فَلَا يَجْلِسْ وَلْيَسْجُدْ سَجْدَتَيِ السَّهْو» . رَوَاهُ أَبُو دَاوُدَ وَابْنُ مَاجَهْ
  صَحِيح   (الألباني) حكم   :
Reference : Mishkat al-Masabih 1020
In-book reference : Book 4, Hadith 439
Sahih al-Bukhari 1231

Narrated Abu Huraira:

Allah's Apostle said, "When the call for prayer is made, Satan takes to his heels passing wind so that he may not hear the Adhan and when the call is finished he comes back, and when the Iqama is pronounced, Satan again takes to his heels, and when the Iqama is finished he comes back again and tries to interfere with the person and his thoughts and say, "Remember this and that (which he has not thought of before the prayer)", till the praying person forgets how much he has prayed. If anyone of you does not remember whether he has offered three or four rak`at then he should perform two prostrations of Sahu while sitting.

حَدَّثَنَا مُعَاذُ بْنُ فَضَالَةَ، حَدَّثَنَا هِشَامُ بْنُ أَبِي عَبْدِ اللَّهِ الدَّسْتَوَائِيُّ، عَنْ يَحْيَى بْنِ أَبِي كَثِيرٍ، عَنْ أَبِي سَلَمَةَ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ إِذَا نُودِيَ بِالصَّلاَةِ أَدْبَرَ الشَّيْطَانُ وَلَهُ ضُرَاطٌ حَتَّى لاَ يَسْمَعَ الأَذَانَ، فَإِذَا قُضِيَ الأَذَانُ أَقْبَلَ، فَإِذَا ثُوِّبَ بِهَا أَدْبَرَ فَإِذَا قُضِيَ التَّثْوِيبُ أَقْبَلَ حَتَّى يَخْطِرَ بَيْنَ الْمَرْءِ وَنَفْسِهِ يَقُولُ اذْكُرْ كَذَا وَكَذَا مَا لَمْ يَكُنْ يَذْكُرُ حَتَّى يَظَلَّ الرَّجُلُ إِنْ يَدْرِي كَمْ صَلَّى، فَإِذَا لَمْ يَدْرِ أَحَدُكُمْ كَمْ صَلَّى ثَلاَثًا أَوْ أَرْبَعًا فَلْيَسْجُدْ سَجْدَتَيْنِ وَهْوَ جَالِسٌ ‏"‏‏.‏
Reference : Sahih al-Bukhari 1231
In-book reference : Book 22, Hadith 9
USC-MSA web (English) reference : Vol. 2, Book 22, Hadith 323
  (deprecated numbering scheme)