Abdullah bin Umar reported,

The people camped with the Messenger of Allah ﷺ at Hijr, the land of Thamud, and they drew water from its wells and kneaded dough with it. The Messenger of Allah ﷺ ordered them to pour out the water they had drawn and to feed the dough to the camels, and he ordered them to draw water instead from the well that the she-camel used to come to. So they drew water from its wells and kneaded their dough with it.

Muslim 7467

Sahih

و حدثنا إسحق بن موسى الأنصاري حدثنا أنس بن عياض حدثني عبيد الله بهذا الإسناد مثله غير أنه قال فاستقوا من بئارها واعتجنوا به

مسلم 7467صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Asceticism and heart-softening matters
Chapter
Do not enter the dwellings of those who wronged themselves unless you are weeping
Numbering
Darussalam 7467
Muslim 7467