Abdullah bin Umar reported,

The people set up camp with the Messenger of Allah ﷺ at al-Hijr, the land of Thamud. They drew water from its wells and kneaded dough with it. The Messenger of Allah ﷺ then ordered them to pour out the water they had drawn and to feed the dough to the camels, and he commanded them to draw water instead from the well that the she-camel used to drink from.

Muslim 7466

Sahih

حدثني الحكم بن موسى أبو صالح حدثنا شعيب بن إسحق أخبرنا عبيد الله عن نافع أن

عبد الله بن عمر أخبره

أن الناس نزلوا مع رسول الله ﷺ على الحجر أرض ثمود فاستقوا من آبارها وعجنوا به العجين فأمرهم رسول الله ﷺ أن يهريقوا ما استقوا ويعلفوا الإبل العجين وأمرهم أن يستقوا من البئر التي كانت تردها الناقة

مسلم 7466صحيح
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 7466
Muslim 7466