حَدَّثَنَا عَبْدُ اللَّهِ بْنُ سُلَيْمَانَ بْنِ الأَشْعَثِ ، وَالْحُسَيْنُ بْنُ إِسْمَاعِيلَ ، وَمُحَمَّدُ بْنُ مَخْلَدٍ ، وَأَحْمَدُ بْنُ مُحَمَّدِ بْنِ أَبِي بَكْرٍ ، ، قَالُوا : ثنا عُبَيْدُ اللَّهِ بْنُ سَعْدٍ ، ثنا عَمِّي يَعْقُوبُ بْنُ إِبْرَاهِيمَ . ح وَحَدَّثَنَا الْحُسَيْنُ بْنُ إِسْمَاعِيلَ ، نا مُحَمَّدُ بْنُ مَنْصُورٍ الطُّوسِيُّ ، نا يَعْقُوبُ بْنُ إِبْرَاهِيمَ ، ثنا أبِي ، عَنِ ابْنِ إِسْحَاقَ ، ثنا سَلَمَةُ بْنُ صَفْوَانَ بْنِ سَلَمَةَ الأَنْصَارِيُّ ثُمَّ الزُّرَقِيُّ عَنْ أَبِي سَلَمَةَ ، عَنْ أَبِي هُرَيْرَةَ ، أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، قَالَ : " إِذَا أَذَّنَ الْمُؤَذِّنُ خَرَجَ الشَّيْطَانُ مِنَ الْمَسْجِدِ لَهُ حُصَاصٌ ، فَإِذَا سَكَتَ الْمُؤَذِّنُ رَجَعَ ، فَإِذَا أَقَامَ الْمُؤَذِّنُ الصَّلاةَ خَرَجَ مِنَ الْمَسْجِدِ وَلَهُ ضُرَاطٌ ، فَإِذَا سَكَتَ رَجَعَ حَتَّى يَأْتِي الْمَرْءُ الْمُسْلِمُ فِي صَلاتِهِ ، فَيَدْخُلُ بَيْنَهُ وَبَيْنَ نَفْسِهِ لا يَدْرِي أَزَادَ فِي صَلاتِهِ أَمْ نَقَصَ ، فَإِذَا وَجَدَ ذَلِكَ أَحَدُكُمْ فَلْيَسْجُدْ سَجْدَتَيْنِ وَهُوَ جَالِسٌ قَبْلَ أَنْ يُسَلِّمَ ثُمَّ يُسَلِّمُ " .
Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates: The Noble Prophet (peace and blessings be upon him) said: "When the muezzin gives the call to prayer (adhan), Satan leaves the mosque, passing wind as he goes. When the muezzin becomes silent, Satan returns. Then when the muezzin gives the iqamah, Satan again leaves the mosque, passing wind as he goes. When the muezzin becomes silent, he returns. He comes to the Muslim person during his prayer and creates various thoughts in his mind, so that he no longer remembers whether he has added to or omitted something from his prayer. When a person faces this situation, then when he is sitting (i.e., during the tashahhud), he should perform two prostrations of forgetfulness (sajda sahw); he should do this before saying the final salam, and then say the salam."