It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that he said: "In the year of the Treaty of Hudaybiyah we set out with the Messenger of Allah (peace and blessings be upon him), until, when we reached the place called al-Suqya, Sayyiduna Mu'adh (may Allah be pleased with him) asked: 'Who will fill our waterskins with water for us?'" Sayyiduna Jabir (may Allah be pleased with him) said: "I went out with some young men who were with me until we reached the place called al-Uthayah. There we drank water ourselves, watered the mounts, and also brought water back filled. Then, when much of the darkness of the night had fallen, suddenly a man appeared whose camel was pulling against him towards the water. I looked, and it was the Messenger of Allah (peace and blessings be upon him). I took hold of his (peace and blessings be upon him) mount and made it kneel. Then he (peace and blessings be upon him) stepped forward and prayed the Isha prayer while I stood on his (peace and blessings be upon him) right side, and after that he (peace and blessings be upon him) prayed thirteen rak'ahs."
Abu Bakr bin Abi Shaybah and Abu Ya'la recorded this hadith, and its basis is narrated in the two Sahihs (Bukhari and Muslim) and elsewhere from the hadith of Sayyiduna Ibn Abbas (may Allah be pleased with them both) and other Companions.