And after this it came to pass, that David smote the Philistines, and subdued them: and David took Methegammah out of the hand of the Philistines.
References for 2 Samuel 8:1
And he smote Moab, and measured them with a line, casting them down to the ground; even with two lines measured he to put to death , and with one full line to keep alive . And so the Moabites became David's servants, and brought gifts.
David smote also Hadadezer, the son of Rehob, king of Zobah, as he went to recover his border at the river Euphrates.
References for 2 Samuel 8:3
And David took from him a thousand chariots, and seven hundred horsemen, and twenty thousand footmen : and David houghed all the chariot horses, but reserved of them for an hundred chariots.
And when the Syrians of Damascus came to succour Hadadezer king of Zobah, David slew of the Syrians two and twenty thousand men.
Then David put garrisons in Syria of Damascus: and the Syrians became servants to David, and brought gifts. And the LORD preserved David whithersoever he went .