The people landed at the land of Thamud called Al-Hijr along with Messenger of Allah ﷺ and they took water from its well for drinking and kneading the dough with it as well. (When Messenger of Allah ﷺ heard about it) he ordered them to pour out the water they had taken from its wells and feed the camels with the dough, and ordered them to take water from the well whence the she-camel (of Prophet Salih) used to drink.
أَخْبَرَهُ أَنَّ النَّاسَ نَزَلُوا مَعَ رَسُولِ اللَّهِ ﷺ أَرْضَ ثَمُودَ الْحِجْرَ فَاسْتَقَوْا مِنْ بِئْرِهَا وَاعْتَجَنُوا بِهِ فَأَمَرَهُمْ رَسُولُ اللَّهِ ﷺ أَنْ يُهَرِيقُوا مَا اسْتَقَوْا مِنْ بِئْرِهَا وَأَنْ يَعْلِفُوا الإِبِلَ الْعَجِينَ وَأَمَرَهُمْ أَنْ يَسْتَقُوا مِنَ الْبِئْرِ الَّتِي كَانَ تَرِدُهَا النَّاقَةُ