When the Philistines heard that David had been anointed king over all Israel, all the Philistines went up to search for David. David heard of it and went out to meet them.
In context
6Nogah, Nepheg, and Japhia, 7Elishama, Beeliada, and Eliphelet. 8When the Philistines heard that David had been anointed king over all Israel, all the Philistines went up to search for David. David heard of it and went out to meet them. 9The Philistines came and raided in the Valley of Rephaim. 10David inquired of God, “Shall I go up against the Philistines? Will you give them into my hand?” Yahweh said to him, “Go up, and I will give them into your hand.”