It was narrated from Zuhri that:
Mahmud bin Rabi' remembered that the Prophet spat into a bucket from a well that belonged to them. (ID)
English reference (ID): Vol. 1, Book 1, Hadith 660 (ID)
Arabic reference (ID): Book 1, Hadith 705 (ID)