Nahash, king of the Ammonites, dies, and his son Hanun reigns in his place. David decides to show him kindness, as Nahash had shown kindness to him, and sends servants to console him. But the Ammonite princes tell Hanun that David has only sent his servants to explore the city in order to overthrow it. Hanun takes David's servants, shaves off half of each one's beard, cuts their garments in half at the hips and sends them away. When David hears, he sends word to them to stay at Jericho until their beards have grown.
The Ammonites see that they have become a stench to David and hire twenty thousand Aramean foot soldiers from Beth-rehob and Zobah, a thousand from the king of Maacah and twelve thousand from Tob. David sends Joab with the whole army. Joab sees that the battle is set against him in front and behind, chooses the best of Israel and sets them against the Arameans, and puts the rest under his brother Abishai against the Ammonites. He tells Abishai: if the Arameans are too strong for me, you will help me; if the Ammonites are too strong for you, I will come and help you. Joab urges everyone to be strong for their people and for the cities of their God, and may the Lord do what seems good to him. The Arameans flee before Joab, and when the Ammonites see it, they flee before Abishai and enter the city.
The defeated Arameans gather again, and Hadadezer brings Arameans from beyond the river, under the command of Shobach. David gathers all Israel, crosses the Jordan and defeats them at Helam, killing seven hundred charioteers and forty thousand horsemen, and Shobach dies. The kings who were servants of Hadadezer make peace with Israel and serve them, and the Arameans are afraid to help Ammon again.