2 Samuel 10
David learned that the king of the Ammonites, Nahash, had died and he decided to show kindness to Nahash's son, Hanun, Nahash had been kind to David, so David sent a delegation of his men to express his sympathy to Hanun. However, the Ammonite nobles convinced Hanun that David was secretly sending his men to instead spy out the land so that he could overthrow them. Hanun seized David's men and humiliated them by shaving off half their beards and cut their garments, sending them back to David. The Ammonites hired twenty thousand soldiers from Beth Rehob and Zoba, twelve thousand from Tob, and a thousand men from Maacah, in order to defend themselves against David. When David learned about all this, he sent his commander Joab with his entire army. Joab said, let us "be strong and let us fight bravely for our people and the cities of God. The Lord will do what is good in His sight." After killing forty thousand of their men, all the armies against David made peace with David and became subject to him.