English translation
Full source narration. The matching passage has not yet been identified reliably.
650. Abū Sa'eed Al-Khudrī narrated: "Once, the Messenger of Allāh ﷺ was leading his Companions in the prayer when he took off his sandals and placed them on his left side. Seeing this, the people all took off their sandals. When the Messenger of Allāh ﷺ completed the prayer, he asked: 'Why did you take your sandals off?' They said: 'We saw you take off your sandals, so we took ours off.' So the Messenger of Allāh ﷺ said: 'Jibrīl, peace be upon him, came to me and informed me that there was some uncleanliness — or some impurity — on them,'[2] and he said: 'When one of you comes to the Masjid, then let him see (his sandals); if he sees any uncleanliness — or impurity — on them, let him wipe
it off and pray in them.”’ (Ṣaḥīh)
[Abu Dawud, 650.]
Arabic text
766 -[13]
وَعَن أبي سعيد الْخُدْرِيّ قَالَ: بَيْنَمَا رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يُصَلِّي [ص: 239] بِأَصْحَابِهِ إِذْ خلع نَعْلَيْه فَوَضَعَهُمَا عَنْ يَسَارِهِ فَلَمَّا رَأَى ذَلِكَ الْقَوْمُ أَلْقَوْا نِعَالَهُمْ فَلَمَّا قَضَى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ صَلَاتَهُ قَالَ: «مَا حَمَلَكُمْ على إلقائكم نعالكم؟» قَالُوا: رَأَيْنَاك ألقيت نعليك فَأَلْقَيْنَا نِعَالَنَا. فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِنْ جِبْرِيلَ أَتَانِي فَأَخْبَرَنِي أَنَّ فيهمَا قذرا إِذا جَاءَ أحدكُم إِلَى الْمَسْجِدَ فَلْيَنْظُرْ فَإِنْ رَأَى فِي نَعْلَيْهِ قَذَرًا أَو أَذَى فَلْيَمْسَحْهُ وَلِيُصَلِّ فِيهِمَا» . رَوَاهُ أَبُو دَاوُدَ وَالدَّارِمِيُّ