Once more the Philistines came up. They spread out in the Valley of Rephaim.So David asked the Lord for advice. The Lord answered,“ Do not go straight up. Instead, circle around behind them. Attack them in front of the poplar trees.Listen for the sound of marching in the tops of the trees. Then move quickly. The sound will mean that I have gone out in front of you. I will strike down the Philistine army.”So David did just as the Lord had commanded him. He struck down the Philistines. He struck them down from Gibeon all the way to Gezer.
After that, the prophet came to the king of Israel again. The prophet said,“ Make your position stronger. Do what needs to be done. Next spring the king of Aram will attack you again.”