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.
أَنَّهُ قِيلَ لِرَسُولِ اللَّهِ ﷺ أَنَتَوَضَّأُ مِنْ بِئْرِ بُضَاعَةَ وَهِيَ بِئْرٌ يُطْرَحُ فِيهَا الْحِيَضُ وَلَحْمُ الْكِلاَبِ وَالنَّتْنُ فَقَالَ رَسُولُ اللَّهِ ﷺ الْمَاءُ طَهُورٌ لاَ يُنَجِّسُهُ شَىْءٌ