Sahih al-Bukhari 3378
Muhammad bin Miskin Abul Hasan narrated to us that Yahya bin Hassan bin Hayyan Abu Zakariyya told us. (He said:) Sulaiman (bin Bilal) narrated to us that it is reported from Abdullah bin Dinar. He narrated from Hazrat Ibn Umar (ra) that when the Messenger of Allah (saw) halted at Hijr during the expedition of Tabuk (he (saw) offered the Asr Prayer). He (saw) told them not to drink from the well there and not to draw water from it for any other purpose either. The Companions (ra) said: We have already drawn water from it and kneaded dough, and we have drawn water and given it to drink. He (saw) told them to throw away that kneaded dough and pour out the water. And it is reported from Sabrah bin Ma'bad and Abu Shamus that he (saw) instructed that the food be thrown away. And Hazrat Abu Dharr (ra) narrated these words from the Prophet (saw): “Whoever has kneaded dough with its water, let him throw that dough away.”
AI-translated by Islam-Today
Book 17: The Statement of Allah Taa'la: "And to Thamud (people, We sent) their brother Salih..."