Some time afterward, David attacked the Philistines and subdued them; David took Metheg-ammah out of the hand of the Philistines.
He also defeated the Moabites and, making them lie down on the ground, measured them off with a cord; he measured two lengths of cord for those who were to be put to death, and one length for those who were to be spared. And the Moabites became servants to David and brought tribute.
References for 2 Samuel 8:2
David also struck down King Hadadezer son of Rehob of Zobah, as he went to restore his monument at the river Euphrates.
References for 2 Samuel 8:3
David took from him one thousand seven hundred horsemen, and twenty thousand foot soldiers. David hamstrung all the chariot horses, but left enough for a hundred chariots.
When the Arameans of Damascus came to help King Hadadezer of Zobah, David killed twenty-two thousand men of the Arameans.
Then David put garrisons among the Arameans of Damascus; and the Arameans became servants to David and brought tribute. The Lord gave victory to David wherever he went.