Language:
كتاب أحاديث الأنبياء
60  
Prophets
(17)
Chapter: The Statement of Allah Taa'la: "And to Thamud (people, We sent) their brother Salih..."
(17)
بَابُ قَوْلِ اللَّهِ تَعَالَى: {وَإِلَى ثَمُودَ أَخَاهُمْ صَالِحًا}
Sahih al-Bukhari 3379

Narrated `Abdullah bin `Umar:

The people landed at the land of Thamud called Al-Hijr along with Allah's Messenger (ﷺ) and they took water from its well for drinking and kneading the dough with it as well. (When Allah's Messenger (ﷺ) 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.

حَدَّثَنَا إِبْرَاهِيمُ بْنُ الْمُنْذِرِ، حَدَّثَنَا أَنَسُ بْنُ عِيَاضٍ، عَنْ عُبَيْدِ اللَّهِ، عَنْ نَافِعٍ، أَنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ ـ رضى الله عنهما ـ أَخْبَرَهُ أَنَّ النَّاسَ نَزَلُوا مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم أَرْضَ ثَمُودَ الْحِجْرَ، فَاسْتَقَوْا مِنْ بِئْرِهَا، وَاعْتَجَنُوا بِهِ، فَأَمَرَهُمْ رَسُولُ اللَّهِ صلى الله عليه وسلم أَنْ يُهَرِيقُوا مَا اسْتَقَوْا مِنْ بِئْرِهَا، وَأَنْ يَعْلِفُوا الإِبِلَ الْعَجِينَ، وَأَمَرَهُمْ أَنْ يَسْتَقُوا مِنَ الْبِئْرِ الَّتِي كَانَ تَرِدُهَا النَّاقَةُ‏.‏ تَابَعَهُ أُسَامَةُ عَنْ نَافِعٍ‏.‏
Reference : Sahih al-Bukhari 3379
In-book reference : Book 60, Hadith 53
USC-MSA web (English) reference : Vol. 4, Book 55, Hadith 562
  (deprecated numbering scheme)