Solomon
Proverbs 6:23ESV·traditional attribution

For the commandment is a lamp and the teaching a light, and the reproofs of discipline are the way of life,

Matthew Henry Presbyterian @wholebiblehenry

Here is, I. A general exhortation faithfully to adhere to the word of God and to take it for our guide in all our actions. 1. We must look upon the word of God both as a light (Pro 6:23) and as a law, Pro 6:20, Pro 6:23.

Commenting on Proverbs 6:20-35

John Gill Reformed Baptist @doctorgill

To keep thee from the evil woman,.... This is one use of the profit arising from attending to the instructions of parents, and to the law of God, as taught by them; to preserve from fornication and adultery, one of its precepts expressly forbidding adultery and all corporeal uncleanness; and the whole of it directing to an observance of all duties respecting God and our...

Jamieson-Fausset-Brown Reformed @jfbcommentary

reproofs-- (Pro 1:23) the convictions of error produced by instruction.