The proud have digged pits for me
Laid snares and temptations in his way, to draw him into sin, and so into mischief; they sought indeed to take away his life, and formed schemes for it. The allusion is to the digging of pits for the taking of wild beasts; which shows the ill opinion they had of David, and their ill usage of him; see ( Psalms 7:15 ) ( 9:15 ) ;
which [are] not after thy law;
no, contrary to it; which forbids the digging of a pit, and leaving it uncovered, so that a neighbour's beast might fall into it, ( Exodus 21:33 Exodus 21:34 ) ; and if those might not be dug to the injury of beasts, then much less to the injury of men, to the hurt of the servants of the Lord, or to the shedding of innocent blood, which the law forbids.