1 Samuel 4:2

4:2 The Philistines arranged their forces to fight Israel. As the battle spread out, Israel was defeated by the Philistines, who killed about four thousand men in the battle line in the field.

1 Samuel 30:17

30:17 But David struck them down from twilight until the following evening. None of them escaped, with the exception of four hundred young men who got away on camels.