During harvest time, three of the thirty chief warriors came down to David at the cave of Adullam, while a band of Philistines was encamped in the Valley of Rephaim.
References for 2 Samuel 23:13
At that time David was in the stronghold, and the Philistine garrison was at Bethlehem.
References for 2 Samuel 23:14
David longed for water and said, “Oh, that someone would get me a drink of water from the well near the gate of Bethlehem!”
So the three mighty warriors broke through the Philistine lines, drew water from the well near the gate of Bethlehem and carried it back to David. But he refused to drink it; instead, he poured it out before the LORD.
References for 2 Samuel 23:16
“Far be it from me, LORD, to do this!” he said. “Is it not the blood of men who went at the risk of their lives?” And David would not drink it. Such were the exploits of the three mighty warriors.
References for 2 Samuel 23:17