David. St. Peter attributes it to him, and gives us the key to this psalm, by applying (ver. 8.) to the traitor Judas, Acts i. 16, 20. (Berthier, T. vii.)
Our Saviour seems to allude to it, when he styles Judas, the son of perdition, John xvii. 8. It may also have a reference to Doeg, or Achitophel, who were his forerunners. Ven. Bede thinks it was composed by the Machabees, against apostates. The Church used it in the deposition of bishops, and against the usurpers of ecclesiastical goods: (Grotius) and, in times of ignorance, some thought hereby to discover thieves. The style is very vehement, (Calmet) containing the sentence pronounced by the sovereign judge against the reprobate. (Haydock)