"Only characters who take part in an encounter should gain the commensurate [XP] awards. Characters who died before the encounter took place, or did not participate for some other reason, earn nothing, even if they are raised or healed later on." DMG, p.37.
It's up to you to decide if water...