1 Chronicles, 19
1. Afterwards Nahash, king of the Ammonites, died and his son Hanun became king.
2. David thought, "I will show kindness to Hanun, son of Nahash, since his father was kind to me." And David sent messengers with his condolences on his father's death. But when David's servants reached Hanun in the land of the Ammonites to present these condolences,
3. the Ammonite leaders said to Hanun, "Do you think David means to honor your father when he sends you messengers of sympathy? On the contrary he has sent them here as spies to explore the land, so that he can conquer it."
4. Hanun had David's servants seized, shaved their beards, cut their clothes half-way up to the hips and sent them away.
5. As soon as David was told what had happened to these men, he sent someone to meet them, for the men were too ashamed to return home. And he said, "Stay in Jericho, until your beards have grown again, and come back then."
6. The Ammonites saw that they had made David their enemy and so Hanun and the Ammonites sent a thousand talents of silver to hire chariots and charioteers from the Aramaeans of Upper Mesopotamia, of Maacah and of Zobah.
7. They hired thirty-two thousand chariots; also the king of Maacah with his army. These came and encamped before Medeba, while the Ammonites came out from all their cities and got ready to fight.
8. When David heard this, he sent Joab with the whole army and the warriors.
9. The Ammonites marched out and took up their positions at the entrance to the town, but the kings who had come remained in the open country.
10. Joab, seeing that he had to fight on two fronts, to his front and to his rear, chose the best fighters of the Israelites and drew them up in line facing the Aramaeans.
11. He placed the rest of the troops under the command of his brother Abishai, to face the Ammonites. He said to him,
12. "If the Aramaeans prove too strong for me, you shall come to my help; if the Ammonites prove too strong for you, I will come to yours.
13. Take courage and fight hard for the sake of our people and the towns of our God. And may Yahweh do as he thinks right."
14. Joab and the force with him advanced to attack the Aramaeans,who fled before him.
15. When the Ammonites saw that the Aramaeans were running away, they too fled before Abishai, Joab's brother, and withdrew into their town. Then Joab came back to Jerusalem.
16. Seeing that they had been defeated by Israel, the Aramaeans sent messengers and mobilized the Aramaeans from beyond the river, with Shophach, commander of Hadadezer's army, at their head.
17. News of this was brought to David, who gathered the Israelite troops, crossed the Jordan, and met them. David drew up his line of battle facing the Aramaeans, and the fighting began.
18. But the Aramaeans fled before Israel, and David killed seven thousand of their chariot teams and forty thousand foot soldiers. He also killed Shophach, their general.
19. When the kings who were subject to Hadadezer saw that they had been defeated by Israel, they made peace with David and became subject to him. After this the Aramaeans refused to give help to the Ammonites.