1 Chronicles 14:8

14:8 When the Philistines heard that David had been anointed king of all Israel, all the Philistines marched up to confront him. When David heard about it, he marched out against them.

1 Chronicles 19:2

19:2 David said, “I will express my loyalty to Hanun son of Nahash, for his father was loyal to me.” So David sent messengers to express his sympathy over his father’s death. When David’s servants entered Ammonite territory to visit Hanun and express the king’s sympathy,