Three of the thirty leading warriors went down at harvest time and came to David at the cave of Adullam, while a company of Philistines was camping in Rephaim Valley.
When the Philistines heard that David had been anointed king over all Israel, they all went in search of David; when David heard of this, he went out to face them.
so David enquired of God, ‘Should I attack the Philistines? Will you hand them over to me? ’ The Lord replied, ‘Attack, and I will hand them over to you.’