King David recognizes God as the absolute source of his military and political triumphs. He attributes both his power to overcome enemies and his authority to rule over foreign nations entirely to divine intervention, making it clear that his success does not stem from his own personal strength.
When reflecting on the retribution brought upon his adversaries, the primary approach among commentators is that God grants David the strength and capability to avenge himself against his enemies [רש״י, רד״ק]. Another perspective suggests that God is the one who actively executes this vengeance on David's behalf [מצודת דוד]. This divine retribution also carries a profound internal message directed at David's domestic opponents, such as Saul and Doeg. By securing these future victories for David, God proves David's greatness to his rivals within Israel, demonstrating that their baseless hatred and efforts to harm him are completely in vain [אלשיך].
Regarding the fate of the opposing nations, there are two main ways to understand God's actions. The first and most common approach centers on leadership. God subdues these foreign peoples, guiding them from their lands and placing them securely under David's authority, effectively establishing him as their leader [רד״ק, מאירי, מצודות, ביאור שטיינזלץ]. A similar view compares this act to a shepherd gathering and leading a flock of sheep into a pen [אבן עזרא]. In stark contrast, another group of commentators understands God's action not as leading, but as complete destruction, explaining that God actively kills and wipes out the enemy nations [רש״י, רד״ק, מלבי״ם, מאירי].
Following the idea of leadership, the subdued nations are simply brought under David's sovereign rule. However, a unique interpretation suggests a concept of exchange or substitution. In this view, God punishes the foreign nations and offers them as a ransom in David's place, sacrificing them in order to ensure his survival [רש״י].