When Allah's Messenger (ﷺ) landed at Al-Hijr during the Ghazwa of Tabuk, he ordered his companions not
to drink water from its well or reserve water from it. They said, "We have already kneaded the dough
with its water. and also filled our bags with its water.'' On that, the Prophet (ﷺ) ordered them to throw
away the dough and pour out the water.
Sahih al-Bukhari Book 60, Hadith 52