Salama bin Akwa reported,

We came to Hudaybiyyah with the Messenger of Allah ﷺ, and we numbered fourteen hundred men. At the well were fifty sheep, but its water was not enough to quench their thirst. The Messenger of Allah ﷺ sat at the edge of the well and either made a supplication or spat into it. The water then gushed forth, so we drank our fill and drew water for our needs.

Azami 9677

Sahih

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

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

الأعظمي 9677صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Miracles of the Prophet ﷺ and proofs of his prophethood
Section
Prophet ﷺ spitting into the well on the day of Hudaybiya and water gushing forth from it
Numbering
Jami al-Kamil 9677 (2nd edition)
Azami 9677