Hadith 1017

نَا مُحَمَّدُ بْنُ رَافِعٍ ، حَدَّثَنَا يَزِيدُ وَهُوَ ابْنُ هَارُونَ ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ ، ح وَحَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى ، نَا أَبُو الْوَلِيدِ ، قَالَ حَمَّادُ بْنُ سَلَمَةَ ، ح وَحَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى ، أَيْضًا حَدَّثَنَا أَبُو النُّعْمَانِ ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ ، عَنْ أَبِي نُعَامَةَ ، عَنْ أَبِي نَضْرَةَ ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ ، أَنّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ يُصَلِّي ، فَخَلَعَ نَعْلَيْهِ ، فَخَلَعَ النَّاسُ نِعَالَهُمْ ، فَلَمَّا انْصَرَفَ قَالَ : " لِمَ خَلَعْتُمْ نِعَالَكُمْ ؟ " ، فَقَالُوا : يَا رَسُولَ اللَّهِ ، رَأَيْنَاكَ خَلَعْتَ فَخَلَعْنَا ، فَقَالَ : " إِنَّ جِبْرِيلَ أَتَانِي ، فَأَخْبَرَنِي أَنَّ بِهِمَا خَبَثًا ، فَإِذَا جَاءَ أَحَدُكُمُ الْمَسْجِدَ فَلْيَقْلِبْ نَعْلَهُ ، فَلْيَنْظُرْ فِيهِمَا خَبَثٌ فَلْيَمْسَحْهُمَا بِالأَرْضِ ، ثُمَّ لَيُصَلِّ فِيهَا " هَذَا حَدِيثُ يَزِيدَ بْنِ هَارُونَ ، وَقَالَ مُحَمَّدُ بْنُ يَحْيَى فِي حَدِيثِ أَبِي الْوَلِيدِ ، فَقَالَ : " إِنَّ جِبْرِيلَ أَخْبَرَنِي أَنَّ فِيهِمَا قَذَرًا ، أَوْ أَذًى "
It is narrated from Sayyiduna Abu Sa'id Khudri (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) was leading the prayer when he removed his shoes, so the Companions also removed their shoes. Then, when the Prophet (peace and blessings be upon him) finished the prayer with salam, he said: "Why did you remove your shoes?" They replied, "O Messenger of Allah (peace and blessings be upon him), we saw that you removed your shoes, so we also removed ours." The Prophet (peace and blessings be upon him) said: "Indeed, Jibreel (peace be upon him) came to me and informed me that there was impurity on my shoes (so I removed them). Therefore, when any one of you comes to the mosque, he should turn his shoes over and look at them; if there is any impurity on them, he should wipe them against the ground to clean them, and then he may pray in them." This is the narration of Yazid bin Harun, while in the narration of Abu al-Walid it is stated: "Indeed, Jibreel (peace be upon him) informed me that there was impurity or filth on them."
Hadith Reference صحيح ابن خزيمه / جماع أبواب الصلاة على البسط / 1017
Hadith Takhrij اسناده صحيح