In 26:4, the good man is not only free from "vanity" (falsehood) but has not even "dwelled with," been on intimate terms with, those who are "vain." He has "hated" them (5)...
But I am inclined to think a Christian would be wise to avoid, where he decently can, any meeting with people who are bullies, lascivious, cruel, dishonest, spiteful, and so forth.
Not because we are "too good" for them. In a sense because we are not good enough. We are not good enough to cope with all the temptations, nor clever enough to cope with all the problems, which an evening spent in such society produces. The... temptation is to condone, to connive at; by our words, looks and laughter, to "consent."
...
What makes this contact with wicked people so difficult is that to handle the situation successfully requires not merely good intentions, even with humility and courage thrown in; it may call for social and even intellectual talents which God has not given us. It is therefore not self-righteousness but mere prudence to avoid it when we can.
Here he explains his intention in particular. And first he sets forth his innocence. Second he sets forth his petition, at "Do not destroy me with the wicked, O God." He shows, therefore, his innocence. And first by his withdrawal from evil. Second by his approach to good, at "I will wash." Now there is a threefold kind of evil, according to three sins. For sin is either against God, or against neighbor, or against oneself. Against oneself are sins of vanity, by which a man vainly delights in earthly things; and of these he says, "I have not sat with the council of vanity"; as if to say, I do ...not claim that in some way I was never with them, because it cannot happen that a man never takes vain delight in earthly things; but he says, "I have not sat": Tob. 3: "I never mixed myself with those who play; nor have I made myself a companion of those who walk in levity." Sins against neighbor are sins generated through action; hence he says, "And with those who do iniquitous things I will not enter," that is, not only have I not sat, etc., but I have not even entered, that is, in no way have I mixed myself with them: Prov. 1: "My son, if sinners entice you, do not walk with them."
Now he lists the things that he has accomplished through the Lord's kindness; such kindness is the basis of his claim that he was pleasing to God. "I have not sat in the council of vanity"; he does not agree to the deliberations of the wicked by any participation in their plan. It can happen that a holy person through some chance may come to the council of the wicked where inappropriate or empty matters are put forward. But while he is aware of these things, he does not sit comfortably with them nor does he tarry over them with any delight, but either he tries to argue against the proposals or... he abandons them. So while he previously denied that he sat with the wicked, now he claims that he did not enter in with the most wicked. Earlier he avoided their deliberation, later he also abandoned their actions. "Going into" pertains to a wicked action, when something begins to be done heedlessly. "Going into" indicates the beginning of the activity that the holy person professes is foreign to his conscience.
“I have not sat with the council of vanity” (ver. 4). I have not chosen to give my heart to them who endeavour to provide, what is impossible, how they may be blessed in the enjoyment of things transitory. “And I will not enter in with them that work wickedly.” And since this is the very cause of all wickedness, therefore I will not have my conscience hid, with them that work wickedly.