When the Ammonites saw the Syrians running away, they fled from Abishai and retreated into the city. Then Joab turned back from fighting the Ammonites and went back to Jerusalem.
Then he defeated the Moabites. He made the prisoners lie down on the ground and put two out of every three of them to death. So the Moabites became his subjects and paid taxes to him.
King David dedicated them for use in worship, along with the silver and gold he took from the nations he conquered—Edom, Moab, Ammon, Philistia, and Amalek.
During that time David and his men would attack the people of Geshur, Girzi, and Amalek, who had been living in the region a very long time. He would raid their land as far as Shur, all the way down to Egypt,
At dawn the next day David attacked them and fought until evening. Except for four hundred young men who mounted camels and got away, none of them escaped.