So David inquired of the LORD, “Should I go up against the Philistines? Will You deliver them into my hand?” “Go up,” replied the LORD, “for I will surely deliver the Philistines into your hand.”
The particular service for which David was raised up was to save Israel out of the hand of the Philistines, Sa2 3:18. This therefore divine Providence, in the first place, gives him an opportunity of accomplishing. Two great victories obtained over the Philistines we have here an account of, by which David not only balanced the disgrace and retrieved the loss Israel had sustained in...
Commenting on 2 Samuel 5:17-25
And they left their images,.... Their idol gods, which they brought with them to protect and defend them, and give them success; perhaps in imitation of the Israelites, who formerly brought the ark of God into their camp against the Philistines, Sa1 4:3; and it appears to have been the custom of other countries, in later times, to bring their gods with them to battle...
And David enquired of the LORD, saying, Shall I go up to the Philistines? wilt thou deliver them into mine hand? And the LORD said unto David, Go up: for I will doubtless deliver the Philistines into thine hand. (f) By Abiathar the priest.