Abdullah bin Umar reported,

The people stopped with the Messenger of Allah ﷺ at al-Hijr, the land of Thamud, and drew water from its wells, using it to knead their dough. The Messenger of Allah ﷺ ordered them to pour out the water they had drawn and to feed the dough to their camels, and he commanded them to draw water instead from the well that the she-camel used to frequent.In another narration it adds, "So they drew water from its wells and kneaded their dough with it."

Azami 14774

Sahih

عن عبد الله

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

الأعظمي 14774صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Etiquette of the road, walking, and travel
Section
Etiquette of passing by the dwellings of a punished people
Numbering
Jami al-Kamil 14774 (2nd edition)
Azami 14774