David said, "Nahash was kind to me, so I will be kind to his son Hanun." So David sent his officers to comfort Hanun about his father's death. David's officers went to the land of the Ammonites.
But the Ammonite leaders said to Hanun, their lord, "Do you think that David is trying to honor your father by sending some men to comfort you? No, David sent these men to spy on your city. They plan to make war against you."
When the people told David, he sent messengers to meet his officers. He did this because these men were very ashamed. King David said, "Wait at Jericho until your beards grow again. Then come back home."
The Ammonites saw that they had become David's enemies, so they hired Arameans from Beth Rehob and Zobah. There were 20,000 Aramean foot soldiers. The Ammonites also hired the king of Maacah with 1000 men and 12,000 men from Tob.
The Ammonites came out and got ready for the battle. They stood at the city gate. The Arameans from Zobah and Rehob and the men from Tob and Maacah did not stand together with the Ammonites in the field.
Joab saw that there were enemies in front of him and behind him. So he chose some of the best Israelite soldiers and lined them up for battle against the Arameans.
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.
Hadadezer sent messengers to bring the Arameans who lived on the other side of the Euphrates River. These Arameans came to Helam. Their leader was Shobach, the captain of Hadadezer's army.
When David heard about this, he gathered all of the Israelites together. They crossed over the Jordan River and went to Helam. There the Arameans prepared for battle and attacked,
but David defeated them, and they ran from the Israelites. David killed 700 chariot drivers and 40,000 horse soldiers as well as Shobach, the captain of the Aramean army.
The kings who served Hadadezer saw that the Israelites had defeated them, so they made peace with the Israelites and became their servants. The Arameans were afraid to help the Ammonites again.