2 Samuel 23:12-16
English Standard Version
13And three of the thirty chief men went down and came about harvest time to David at the cave of Adullam, when a band of Philistines was encamped in the Valley of Rephaim.
14David was then in the stronghold, and the garrison of the Philistines was then at Bethlehem.
15And David said longingly, "Oh, that someone would give me water to drink from the well of Bethlehem that is by the gate!"
16Then the three mighty men broke through the camp of the Philistines and drew water out of the well of Bethlehem that was by the gate and carried and brought it to David. But he would not drink of it. He poured it out to the Lord