John Gills Exposition of the Bible Commentary - Psalms 26:4
I have not sat with vain persons ,.... Or "men of vanity" F20 עם מתי שוא "cum hominibus vanitatis", Gejerus, Michaelis. ; who are full of it; who are addicted to the vanities of the world; who pursue the riches, honours, pleasures, and profits of it; which is no other than walking in a vain show: whose thoughts, words, and actions are vain; who are vainly puffed up in their fleshly mind, and walk in the vanity of it; who take the name of God in vain, and whose common discourse is... read more
Matthew Henry's Complete Commentary - Psalms 26:1-5
It is probable that David penned this psalm when he was persecuted by Saul and his party, who, to give some colour to their unjust rage, represented him as a very bad man, and falsely accused him of many high crimes and misdemeanors, dressed him up in the skins of wild beasts that they might bait him. Innocency itself is no fence to the name, though it is to the bosom, against the darts of calumny. Herein he was a type of Christ, who was made a reproach of men, and foretold to his followers... read more