The Book of Prayer
Bulugh al-Maram #259
كتاب الصلاة
وَعَنْ أَبِي سَعِيدٍ - رضى الله عنه - قَالَ: قَالَ رَسُولُ اَللَّهِ - صلى الله عليه وسلم -«إِذَا جَاءَ أَحَدُكُمْ اَلْمَسْجِدَ, فَلْيَنْظُرْ, فَإِنْ رَأَى فِي نَعْلَيْهِ أَذًى أَوْ قَذَرًا فَلْيَمْسَحْهُ, وَلْيُصَلِّ فِيهِمَا» أَخْرَجَهُ أَبُو دَاوُدَ, وَصَحَّحَهُ اِبْنُ خُزَيْمَةَ
Narrated Abu Sa'id (RA):
Allah's Messenger (ﷺ) said: “When any of you comes to the mosque he should look and if he sees impurity on his sandals (shoes) he should wipe them and then pray in them.”
وَعَنْ أَبِي سَعِيدٍ - رضى الله عنه - قَالَ : قَالَ رَسُولُ اَللَّهِ - صلى الله عليه وسلم -"إِذَا جَاءَ أَحَدُكُمْ اَلْمَسْجِدَ , فَلْيَنْظُرْ, فَإِنْ رَأَى فِي نَعْلَيْهِ أَذًى أَوْ قَذَرًا فَلْيَمْسَحْهُ , وَلْيُصَلِّ فِيهِمَا" أَخْرَجَهُ أَبُو دَاوُدَ , وَصَحَّحَهُ اِبْنُ خُزَيْمَةَ
Allah's Messenger (ﷺ) said: "When any of you comes to the mosque he should look and if he sees impurity on his sandals (shoes) he should wipe them and then pray in them."
— Bulugh al-Maram, Hadith 259