2 Samuel 8:9-18

9 When King Toi of Hamath heard that David had defeated Hadadezer's whole army,
10 he sent his son Joram to greet King David and congratulate him for fighting and defeating Hadadezer. (There had often been war between Hadadezer and Toi.) Joram brought articles of gold, silver, and bronze with him.
11 King David dedicated these articles to the LORD, along with the silver and gold he had dedicated from all the nations he conquered--
12 from Edom, Moab, Ammon, the Philistines, Amalek, and from the goods taken from Zobah's King Hadadezer, son of Rehob.
13 David made a name for himself by killing 18,000 Edomites in the Dead Sea region as he returned [to Jerusalem].
14 He put troops everywhere in Edom, and all the Edomites were David's subjects. Everywhere David went, the LORD gave him victories.
15 So David ruled all Israel. He did what was fair and right for all his people.
16 Zeruiah's son Joab was in charge of the army. Ahilud's son Jehoshaphat was the royal historian.
17 Ahitub's son Zadok and Abiathar's son Ahimelech were priests. Seraiah was the royal scribe.
18 Jehoiada's son Benaiah was commander of the Cherethites and the Pelethites. And David's sons were priests.