I said,.... That is, in his heart; he purposed and determined within himself to do as follows; and he might express it with his mouth, and so his purpose became a promise;
I will take heed to my ways; as every good man should; that is, to all his actions, conduct, and conversation: it becomes him to take heed what ways he walks in; that they are the ways of God, which he directs to; that they are the ways of Christ, which he has left an example to follow in; and that they are according to the word of God; that he walks in Christ, the way of salvation, and by faith on him; that he chooses and walks in the way of truth, and not error; and in all, the commandments and ordinances of the Lord blameless; and in the path of holiness, in which, though fools, they shall not err: and it is also necessary that he should take heed that he does nothing, either by embracing error, or going into immorality, by which the ways of God, and Christ, and truth, are evil spoken of, blasphemed and reproached; and that he does not depart out of these ways, nor stumble, slip, and fall in them;
that I sin not with my tongue; which is a world of iniquity, and has a multitude of vices belonging to it; not only in profane men, but in professors of religion; whom it becomes to take heed that they sin not with it, by lying one to another, by angry and passionate expressions, by corrupt communication, filthiness, foolish talking, and jesting, which are not convenient; by whispering, talebearing, backbiting, and by evil speaking one of another: particularly there are vices of the tongue, which the saints are liable to under afflictive providences, and seem chiefly designed here; such as envious expressions at the prosperity of others; words of impatience under their own afflictions, and murmurings at the hand of God upon them; such as these the psalmist determined, within himself, to guard against; in order to which he proposed to take the following method;
I will keep my mouth with a bridle: that is, bridle his tongue, that being an unruly member, and to be kept in with bit and bridle, like an unruly horse; see James 1:26;
while the wicked is before me; or "against me" t; meaning either while Ahithophel and Absalom were conspiring and rebelling against him, and Shimei was cursing him, under which he behaved with great silence, calmness, and patience; see 2 Samuel 15:25; or while he had the flourishing condition of wicked men in his view, and was meditating on it; or rather, when anyone of them came to visit him in his affliction, he was determined to be wholly silent, that they might have no opportunity of rejoicing over him, nor of reproaching him, and the good ways of God: and indeed it is proper for the people of God to be always upon their guard, when they are in the presence of wicked men; and be careful what they utter with their lips, who watch their words to improve them against them, and the religion they profess.
t לנגדי "adversum me", V. L. "contra me", Cocceius; so the Targum.