All nations compassed me about - This is by some supposed to relate to David, at the commencement of his reign, when all the neighboring Philistine nations endeavored to prevent him from establishing himself in the kingdom. Others suppose it may refer to the Samaritans, Idumeans, Ammonites, and others, who endeavored to prevent the Jews from rebuilding their city and their temple after their return from captivity in Babylon.
But in the name of the Lord will I destroy them - Dr. Kennicott renders אמילם amilam, "I shall disappoint them;" Bishop Horsley, "I cut them to pieces;" Mr. N. Berlin, repuli eas, "I have repelled them." "I will cut them off;" Chaldee. Ultus sum in eos, "I am avenged on them;" Vulgate. So the Septuagint.
All nations compassed me about - They surrounded me; they hemmed me in on every side, so that I seemed to have no chance to escape. It would seem from this that the psalm was composed by someone who was at the head of the government, and whose government had been attacked by surrounding nations. This would accord well with many things that occurred in the life of David; but there were also other times in the Jewish history to which it would be applicable, and there is nothing that necessarily confines it to the time of David.
But in the name of the Lord will I destroy them - Margin, as in Hebrew,” cut them off.” This is the language which he used at that time; the purpose which he then formed; an expression of the confidence which he then cherished. He meant to subdue them; he had no doubt that he would be able to do it.