The slave-mother of Ibrahim ibn AbdurRahman ibn Awf asked Umm Salamah, the wife of the Prophet (ﷺ): I am a woman having a long border of clothe and I walk in filthy place; (then what should I do?). Umm Salamah replied: The Messenger of Allah ( peace be upon him) said: What comes after it cleanses it.
Sunan Abi Dawud Book 1, Hadith 383