The Ammonites saw that the Arameans were running away, so they ran away from Abishai and went back to their city. So Joab came back from the battle with the Ammonites and went back to Jerusalem.
King David made these things holy and gave them to the Lord. David did the same thing with all the silver and gold he had gotten from Edom, Moab, the Ammonites, the Philistines, and Amalekites.
He also defeated the Moabites. He forced them to lie on the ground in a long row. Using a rope to measure, those within two lengths of the rope were killed and those within every third length were allowed to live. So the Moabites became servants of David and paid tribute to him.
David and his men went to fight the Amalekites and Geshurites who lived in the area from Telem near Shur all the way to Egypt. David’s men defeated them and took their wealth.
David attacked them and killed them. They fought from sunrise until the evening of the next day. None of the Amalekites escaped, except for 400 young men who jumped onto their camels and rode away.