When the Philistines heard that David had become king of Israel, they came to capture him. But David heard about their plan and marched out to meet them in battle.