Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:4103Abū Saʿd al-Mālīnī > Abū Aḥmad b. ʿAdī al-Ḥāfiẓ > al-Haytham b. Khalaf al-Dūrī > Abū Kurayb > Ibrāhīm b. Ismāʿīl al-Yashkurī > Ibrāhīm b. Abū Ḥabībah > Dāwud b. al-Ḥuṣayn > Abū Sufyān > Abū Hurayrah

It was said: "O Messenger of Allah, we want to come to the mosque, but the path that we walk upon is impure." The Messenger of Allah said: "Some parts of the earth purify others." (Using translation from Ibn Mājah 532)   

البيهقي:٤١٠٣أنبأ أَبُو سَعْدٍ الْمَالِينِيُّ أنبأ أَبُو أَحْمَدَ بْنُ عَدِيٍّ الْحَافِظُ ثنا الْهَيْثَمُ بْنُ خَلَفٍ الدُّورِيُّ ثنا أَبُو كُرَيْبٌ ثنا إِبْرَاهِيمُ بْنُ إِسْمَاعِيلَ الْيَشْكُرِيُّ عَنْ إِبْرَاهِيمَ بْنِ أَبِي حَبِيبَةَ عَنْ دَاوُدَ بْنِ الْحُصَيْنِ عَنْ أَبِي سُفْيَانَ عَنْ أَبِي هُرَيْرَةَ قَالَ

قُلْنَا يَا رَسُولَ إِنَّا نُرِيدُ الْمَسْجِدَ فَنَطَأُ الطَّرِيقَ النَّجِسَةَ فَقَالَ النَّبِيُّ ﷺ الطُّرُقُ تُطَهِّرُ بَعْضُهَا بَعْضًا وَهَذَا إِسْنَادٌ لَيْسَ بِالْقَوِيِّ  


See similar narrations below:

Collected by Ibn Mājah
ibnmajah:532Abū Kurayb > Ibrāhīm b. Ismāʿīl al-Yashkurī > Ibn Abū Ḥabībah > Dāwud b. al-Ḥuṣayn > Abū Sufyān > Abū Hurayrah

It was said: "O Messenger of Allah, we want to come to the mosque, but the path that we walk upon is impure." The Messenger of Allah said: "Some parts of the earth purify others."  

ابن ماجة:٥٣٢حَدَّثَنَا أَبُو كُرَيْبٍ حَدَّثَنَا إِبْرَاهِيمُ بْنُ إِسْمَاعِيلَ الْيَشْكُرِيُّ عَنِ ابْنِ أَبِي حَبِيبَةَ عَنْ دَاوُدَ بْنِ الْحُصَيْنِ عَنْ أَبِي سُفْيَانَ عَنْ أَبِي هُرَيْرَةَ قَالَ

قِيلَ يَا رَسُولَ اللَّهِ إِنَّا نُرِيدُ الْمَسْجِدَ فَنَطَأُ الطَّرِيقَ النَّجِسَةَ فَقَالَ رَسُولُ اللَّهِ ﷺ الأَرْضُ يُطَهِّرُ بَعْضُهَا بَعْضًا