Solomon
Proverbs 29:6ESV·traditional attribution

An evil man is ensnared in his transgression, but a righteous man sings and rejoices.

Matthew Henry Presbyterian @wholebiblehenry

Here is, 1. The peril of a sinful way. There is not only a punishment at the end of it, but a snare in it. One sin is a temptation to another, and there are troubles which, as a snare, come suddenly upon evil men in the midst of their transgressions; nay, their transgression itself often involves them in vexations; their sin is their punishment...

John Gill Reformed Baptist @doctorgill

In the transgression of an evil man there is a snare,.... Or, according to the accents in some copies, "in the transgression of a man is an evil snare", as Aben Ezra observes the words may be read; there is a snare in sin to man himself; one sin leads on to another, and a man is snared by the works of his own hands...

Jamieson-Fausset-Brown Reformed @jfbcommentary

In--or, "By" the transgression--he is brought into difficulty (Pro 12:13), but the righteous go on prospering, and so sing or rejoice.