A deeply personal prayer often grows to encompass an entire community of faith. King David moves beyond his own needs, asking that all who fear God and place their hope in Him are spared from disgrace [רד״ק, מאירי, ביאור שטיינזלץ]. He stands before God as a representative of the entire nation of Israel. Because the people look to him, and he looks to God, the acceptance of his personal prayer is effectively the acceptance of the nation's prayer [רד״ק].
This creates a profound chain of cause and effect. If God saves David, it proves to all believers that their faith is rewarded, protecting them from the taunts of those who mock them [מצודת דוד, מלבי״ם]. The ultimate goal of this request is not merely personal rescue, but the vindication of trust in God and the expansion of His honor in the world [מלבי״ם]. Furthermore, David clarifies that his desire to avoid disgrace does not come at the expense of other believers. Instead, he asks that shame falls exclusively upon the wicked [אלשיך].
In sharp contrast to those who hope in God, the plea asks for the disgrace of those who act treacherously for nothing, meaning they behave with malice without any justified reason [אבן עזרא, מצודת ציון]. The primary approach among commentators is that this refers to people who betray their friends, David, or the faithful without any cause or prior provocation [רד״ק, מאירי, מצודת דוד]. Other perspectives add different dimensions to this betrayal. On a social and economic level, the treacherous are understood as extortionists who rob the poor, leaving their victims entirely empty of their possessions [רש״י]. On a moral and spiritual level, these are individuals who betray God purely out of a wicked nature, choosing evil even when it offers no personal benefit [אלשיך, ביאור שטיינזלץ]. Ultimately, truth and justice dictate that these treacherous individuals are the ones who should suffer shame and disappointment when their malicious hopes inevitably fail [אבן עזרא, רד״ק].