2 Samuel 5:19

19 Then David inquired of the Lord: "Should I go to war against the Philistines? Will you hand them over to me?" The Lord replied to David, "Go, for I will certainly hand the Philistines over to you."

2 Samuel 5:19 Meaning and Commentary

2 Samuel 5:19

And David inquired of the Lord
By Abiathar, and the Urim and Thummim, in the ephod he had on:

saying, shall I go up to the Philistines?
who by this time were gone from the valley to an higher place, to Mount Perazim, as in ( Isaiah 28:21 ) ;

wilt thou deliver them into my hand?
here two questions are put together, and an answer returned to both, contrary to a notion of the Jews, (See Gill on 1 Samuel 23:11);

and the Lord said to David, go up, for I will doubtless deliver the
Philistines into thine hand;
by which oracle he had both the mind of God that he should go up, and was assured of victory.

2 Samuel 5:19 In-Context

17 When the Philistines heard that David had been anointed king over Israel, they all went in search of David, but he heard about it and went down to the stronghold.
18 So the Philistines came and spread out in the Valley of Rephaim.
19 Then David inquired of the Lord: "Should I go to war against the Philistines? Will you hand them over to me?" The Lord replied to David, "Go, for I will certainly hand the Philistines over to you."
20 So David went to Baal-perazim and defeated them there and said, "Like a bursting flood, the Lord has burst out against my enemies before me." Therefore, he named that place the Lord Bursts Out.
21 The Philistines abandoned their idols there, and David and his men carried them off.
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.