The people asked the Messenger of Allah (ﷺ): Can we perform ablution out of the well of Buda'ah, which is a well into which menstrual clothes, dead dogs and stinking things were thrown? He replied: Water is pure and is not defiled by anything.
Sunan Abi Dawud Book 1, Hadith 66