Absolute loyalty to God requires taking a firm stand against those who oppose Him. David expresses his total devotion to God through his fierce opposition to His enemies. This stance is a clear sign of true love, as a genuine friend hates the enemies of the one he loves as if they were his own [מלבי״ם]. By making this declaration, David publicly distances himself completely from the path of the wicked [מאירי].
The struggle is directed against individuals who actively fight against God, though their actions take several forms. These are people who deny Divine providence and rebel against God specifically to anger Him [מצודת דוד, מלבי״ם]. Additionally, they use wicked words to convince others to reject the Commandments [מצודת דוד]. By doing so, they create hostility and division between the Israelites and their Father in heaven [תורה תמימה]. Because of the severe damage caused by those who distance the Israelites from God, Talmudic sages conclude that such individuals should not be saved from disaster or ruin [תורה תמימה].
This opposition to God can be viewed as developing in two distinct stages. The first is an internal hatred hidden deep within the mind and heart, which then transitions into a second stage of active, practical rebellion [אלשיך]. David is able to recognize this concealed hatred because human hearts naturally reflect one another. From this, it is understood that God, who created humanity, certainly knows their innermost thoughts [אלשיך]. In contrast to this two-stage concept, another perspective maintains that there are no distinct types of enemies or stages of rebellion. Instead, the ideas are simply repeated for poetic emphasis [אבן עזרא].
Faced with such defiance, David responds with fierce and powerful hatred [אבן עזרא]. The primary approach among commentators is that he translates this feeling into action by actively fighting and quarreling with these wicked individuals [רד״ק, מאירי, מצודת דוד]. However, an alternative view suggests that his reaction is not about external conflict. Rather, it describes a feeling of deep disgust and repulsion, viewing these corrupt individuals as a painful thorn [אבן עזרא].