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
Hadith No. 386
Sunan Abu Dawud
Gradings:
Al-Albani:
Sahih
Muhammad Muhyi Al-Din Abdul Hamid:
Sahih
Shuaib Al Arnaut:
Sahih Lighairihi
Zubair Ali Zai:
Daif