In the course of time, the king of the Ammonites died, and his son Hanun succeeded him as king.
References for 2 Samuel 10:1
David thought, "I will show kindness to Hanun son of Nahash,1 just as his father showed kindness to me." So David sent a delegation to express his sympathy to Hanun concerning his father. When David's men came to the land of the Ammonites,
the Ammonite nobles said to Hanun their lord, "Do you think David is honoring your father by sending men to you to express sympathy? Hasn't David sent them to you to explore the city and spy it out2 and overthrow it?"