Abdullah bin Umar reported,

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

Azami 12612

Sahih

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

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

الأعظمي 12612صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "And certainly, the people of Hijr denied the messengers. And We gave them Our signs, but they turned away from them. And they used to carve from the mountains houses, feeling secure. So the blast seized them in the morning, and what they used to earn did not avail them"
Numbering
Jami al-Kamil 12612 (2nd edition)
Azami 12612