2 Samuel 5:18-19

18Now the Philistines had come and spread out in athe Valley of Rephaim. 19And David binquired 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.”
Copyright information for ESV