During the reign of king David, Nahash died and his son Hanun took the throne. Upon hearing of this David sent a message to the new king in hopes that he could have an agreeable relationship with Hanun as he did with his father. Hunan's advisers convinced him that the messengers of David were sent not to comfort but to spy out the land in order to overthrow it. So Hanun shaved off half the beard of each, cut off their garments in the middle of their buttocks, and sent them back to Israel. Hanun realized he had angered David and hired the Syrians of Beth-rehob and Zobah, the king of Maacah, and the men of Tob to fight with him against Israel. Upon hearing of this David sent Joab and the army of Israel to Ammon where they defeated the armies and subjugated the Ammonites. When David captured the royal city of Rabbah he took the crown from Hanun's head and placed it on his own and returned to Israel with the spoils of war.