Abu Hurairah reported the tradition to the same effect from the Prophet ﷺ: When any of you treads with his shoes upon something unclean, they will be purified with the earth.
Explanation & Benefits
Shaykh Umar Farooq Saeedi
386. Commentary:
If shoes or leather socks (khuffayn) become soiled with impurity, even if it is liquid, then rubbing them on clean earth is a means of purification for them, provided that no apparent trace remains on them.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 386