The Philistines also came and spread themselves in the valley of Rephaim.
The Philistines renewed their invasion after Israel had grown stronger under David and after suffering an earlier defeat at his hands. They returned with a large and increased force and spread themselves out to take up their position in the valley of Rephaim, close by Jerusalem. Their renewed advance led David to seek God's direction once again rather than moving on his own judgment. In answer God gave him a different strategy from before, which David obeyed fully and by which he defeated them.
The Philistines spread themselves in the valley of Rephaim as an opposing power against Israel, attacking David after he became king because they were jealous of his growing power. This was one of two Philistine attacks at different times, and David defeated them in both. David asked God for instructions, was told to go up and fight with the promise that they would be delivered into his hand, and was victorious through seeking the Lord and obeying His direction. The victory belongs to the account of a Philistine defeat that came before David gathered Israel's leaders to bring the ark to the capital. It stands in a line of victories that began with the Amalekites before his accession to the kingship of Judah and continued with the Moabites made vassals and the Ammonites and Syrians defeated so that their tributary kings became subjects of Israel's ruler. The Philistine oppression did not last, for God used Samson, Saul, and David to cast down their power, so that the Philistines were no longer to be feared. The same task under apparently the same conditions is not always to be performed in the same way, for God gives new light and a new way of victory to him who prays.