ذِكْرُ الْأَمْرِ لِمَنْ أَتَى الْمَسْجِدَ لِلصَّلَاةِ أَنْ يَنْظُرَ فِي نَعْلَيْهِ وَيَمْسَحَ الْأَذَى عَنهُمَا إِنْ كَانَ بِهِمَا
[Machine] The Prophet Muhammad صلى الله عليه وسلم prayed with us, and after he finished praying, he took off his sandals and placed them on his left side. The people also took off their sandals. When he finished his prayer, he asked, "Why did you take off your sandals?" They replied, "We saw you take off yours, so we took off ours." He said, "I did not take them off due to any discomfort, but the angel Gabriel informed me that there was some impurity on them. So, when one of you enters the mosque, let him check his sandals. If there is any impurity on them, he should wipe it off."
صَلَّى بِنَا رَسُولُ اللَّهِ ﷺ فَلَمَّا صَلَّى خَلَعَ نَعْلَيْهِ فَوَضَعَهُمَا عَنْ يَسَارِهِ فَخَلَعَ الْقَوْمُ نِعَالَهُمْ فَلَمَّا قَضَى صَلَاتَهُ قَالَ «مَا لَكُمْ خَلَعْتُمْ نِعَالَكُمْ؟ » قَالُوا رَأَيْنَاكَ خَلَعْتَ فَخَلَعْنَا قَالَ «إِنِّي لَمْ أَخْلَعْهُمَا مِنْ بَأْسٍ وَلَكِنَّ جِبْرِيلَ أَخْبَرَنِي أَنَّ فِيهِمَا قَذَرًا فَإِذَا أَتَى أَحَدُكُمُ الْمَسْجِدَ فَلْيَنْظُرْ فِي نَعْلَيْهِ فَإِنْ كَانَ فِيهِمَا أَذًى فَلْيَمْسَحْهُ»