Sahih Muslim #1810
The Book of Jihad and Expeditions 32:164
It has been narrated on the authority of Anas b. Malik who said that the Messenger of Allah (ﷺ) allowed Umm Sulaim and some other women of the Ansar to accompany him when he went to war; they would give water (to the soldiers) and would treat the wounded.