19 so David inquired of the LORD, “Shall I go and attack the Philistines? Will you deliver them into my hands?” The LORD answered him, “Go, for I will surely deliver the Philistines into your hands.”

Read 2 Samuel 5:19 Using Other Translations

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.
And David inquired of the LORD, "Shall I go up against the Philistines? Will you give them into my hand?" And the LORD said to David, "Go up, for I will certainly give the Philistines into your hand."
So David asked the LORD, “Should I go out to fight the Philistines? Will you hand them over to me?” The LORD replied to David, “Yes, go ahead. I will certainly hand them over to you.”