And the Philistines heard that David was anointed king over all Israel, and all the Philistines went up to seek David; and David heard of it, and went out against them.