Salama bin Akwa reported,

We arrived at Hudaybiyah with the Messenger of Allah ﷺ, and we were fourteen hundred. At the well there were fifty sheep that could not get enough water from it. The Messenger of Allah ﷺ sat at the edge of the well and either prayed or spat into it. The water then surged up, so we drank and drew water for our needs.

Azami 8978

Sahih

عن سلمة بن الأكوع قال

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

الأعظمي 8978صحيح
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 8978 (2nd edition)
Azami 8978