"I am a woman whose hem is lengthy, and I may walk through a dirty place. The Messenger of Allah said: 'That which comes after it purifies it.'"
Sunan Ibn Majah Book 1, Hadith 265