2 Samuel 8:12
10 he sent his son Joram to King David to extend his best wishes and to pronounce a blessing on him for his victory over Hadadezer, for Toi had been at war with Hadadezer. He brought with him various items made of silver, gold, and bronze. 11 King David dedicated these things to the Lord, along with the dedicated silver and gold that he had taken from all the nations that he had subdued, 12 including Edom, Moab, the Ammonites, the Philistines, and Amalek. This also included some of the plunder taken from King Hadadezer son of Rehob of Zobah. 13 David became famous when he returned from defeating the Edomites in the Valley of Salt; he defeated 18,000 in all. 14 He placed garrisons throughout Edom, and all the Edomites became David’s subjects. The Lord protected David wherever he campaigned.
Psalm 60:2
1 For the music director, according to the shushan-eduth style; a prayer of David written to instruct others. It was written when he fought against Aram Naharaim and Aram Zobah. That was when Joab turned back and struck down 12,000 Edomites in the Valley of Salt. O God, you have rejected us. You suddenly turned on us in your anger. Please restore us! 2 You made the earth quake; you split it open. Repair its breaches, for it is ready to fall. 3 You have made your people experience hard times; you have made us drink intoxicating wine. 4 You have given your loyal followers a rallying flag, so that they might seek safety from the bow. (Selah)
Notes and References
"... The last and climactic oracle predicts the destruction of Moab and other enemies. It completes the 3 + 1 pattern whereby the last of a triad is enhanced by the addition of a fourth member. For other biblical examples, see Amos 1:3-2:6 and Proverbs 30:18-19, 29-31. The mention of Edom and the Sethites is unanticipated, but the function of these oracles is the confirmation and fulfillment of the patriarchal blessings of Genesis 25:23 and 27:29, in which the overthrow of Edom is a prominent theme. In Genesis 27:29 - if the Sethites refer to all the nomadic groups descended from Abraham (Genesis 25:1-18) - Jacob / Israel is promised dominion over all his kinsmen. According to Ibn Ezra and many moderns, this prophecy refers to King David, who conquered Moab and Edom, as mentioned in 2 Samuel 8:2-14, 1 Kings 11:15—16, and Psalms 60:2-10 ..."
Milgrom, Jacob Numbers: The Traditional Hebrew Text with the New JPS Translation (p. 206) Jewish Publication Society, 1990