When the Ammonites saw that the Arameans fled, they likewise fled before Abishai and entered the city. Then Joab returned from fighting against the Ammonites and came to Jerusalem.
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.
these also King David dedicated to the Lord, together with the silver and gold that he had carried off from all the nations, from Edom, Moab, the Ammonites, the Philistines, and Amalek.
Now David and his men went up and made raids on the Geshurites, the Girzites, and the Amalekites, for these were the landed settlements from Telam on the way to Shur and on to the land of Egypt.
David attacked them from twilight until the evening of the next day. Not one of them escaped, except four hundred young men, who mounted camels and fled.