Bara bin Azib reported,

They were with the Messenger of Allah ﷺ on the day of Hudaybiyyah, numbering one thousand four hundred or more. They camped beside a well and drew from it until it ran dry. They came to the Messenger of Allah ﷺ, who went to the well and sat on its edge.Then he said, "Bring me a bucket of its water."It was brought to him, and he spat into it and made supplication. Then he said, "Leave it for a while."So they quenched their own thirst and that of their mounts until they departed.

Azami 8980

Sahih

عن البراء بن عازب

أنهم كانوا مع رسول الله ﷺ يوم الحديبية ألفا وأربع مائة أو أكثر، فنزلوا على بئر فنزحوها، فأتوا رسول الله ﷺ، فأتي البئر وقعد على شفيرها، ثم قال: ائتوني بدلو من مائها فأتي به، فبصق فدعا ثم قال: دعوها ساعة فأرووا أنفسهم وركابهم حتى ارتحلوا.

الأعظمي 8980صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Expedition of Hudaybiya and expedition of Dhat al-Qarad
Section
Prophet ﷺ spat in the well of Hudaybiya and the water gushed forth
Numbering
Jami al-Kamil 8980 (2nd edition)
Azami 8980