17When the Philistines heard that they had anointed David king over Israel, all the Philistines went up to seek David; and David heard of it, and went down to the stronghold.
18Now the Philistines had come and spread themselves in the valley of Rephaim.
19David inquired of Yahweh, saying, Shall I go up against the Philistines? will you deliver them into my hand? Yahweh said to David, Go up; for I will certainly deliver the Philistines into your hand.
20David came to Baal-perazim, and David struck them there; and he said, Yahweh has broken my enemies before me, like the breach of waters. Therefore he called the name of that place Baal-perazim.
21They left their images there; and David and his men took them away.
22The Philistines came up yet again, and spread themselves in the valley of Rephaim.
23When David inquired of Yahweh, he said, You shall not go up: make a circuit behind them, and come on them over against the mulberry-trees.