The Messenger of Allah ﷺ said, "When one of you steps on something filthy with his sandal, the earth purifies it for him."
حدثنا أحمد بن حنبل حدثنا أبو المغيرة ح و حدثنا عباس بن الوليد بن مزيد أخبرني أبي ح و حدثنا محمود بن خالد حدثنا عمر يعني ابن عبد الواحد عن الأوزاعي المعنى قال أنبئت أن سعيد بن أبي سعيد المقبري حدث عن أبيه
أن رسول الله ﷺ قال إذا وطئ أحدكم بنعله الأذى فإن التراب له طهور
No references are available.
Sourcing, its chain is daif. Hakim reported it in 1/166 through the hadith of Abbas bin Walid bin Mazid, by this route. Uzai did not hear it from Saeed Maqburi, and the hadith has daif corroborating narrations.