Narrated Ibn 'Umar: 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.
This hadith also teaches us about obedience; even though his companions were reluctant to follow his orders, they still did so out of respect for him as their leader and teacher. This shows us how important it is for us to obey those in authority over us, especially if what they are asking is reasonable and beneficial for everyone involved.
The values taught in this hadith are obedience, respect for nature, mindfulness towards our environment, humility towards authority figures, and responsibility towards resources given by Allah SWT .