8And when the Philistines had news that David had been made king over all Israel, they went up in search of David, and David, hearing of it, went out against them.
9Now the Philistines had come, and had gone out in every direction in the valley of Rephaim.
10And David, desiring directions from God, said, Am I to go up against the Philistines? and will you give them into my hands? And the Lord said, Go up; for I will give them into your hands.
11So they went up to Baal-perazim, and David overcame them there, and David said, God has let the forces fighting against me be broken by my hand, as a wall is broken down by rushing water; so they gave that place the name of Baal-perazim.
12And the Philistines did not take their images with them in their flight; and at David's orders they were burned with fire.
13Then the Philistines again went out in every direction in the valley.
14And David went for directions to God; and God said to him, You are not to go up after them; but, turning away from them, come face to face with them opposite the spice-trees.