MIDRASH TEHILLIM
1.....(9.7)
You have rebuked the nations...
That is, rebuked Amalek, of whom it is said: "Amalek was the first of the nations... (Bamidbar - Numbers 24:20)
You have destroyed the wicked that is, destroyed Esau, of whose descendants it is said: "...and they shall be called the border of wickedness..." (Malachi 1:4). For in a single day Esau did five wicked deeds, he forced a betrothed maiden, he killed a man, he denied the resurrection of the dead, he denied the root of the world, and he rejected his birthright.
When David foresaw that the wicked would oppress the righteous, he asked God - Rebuke the nations, destroy the wicked, blot out their name forever and ever.