Solomon
Proverbs 6:22ESV·traditional attribution

When you walk, they will lead you; when you lie down, they will watch over you; and when you awake, they will talk with you.

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

For the commandment is a lamp,.... The law of God is a lamp or candle to see to work by and to walk by; it enlightens the eyes and directs the feet, and makes working more pleasant, and walking more comfortable; and indeed wit, bout it a man knows not rightly what to do or where he should walk, or where he is walking; see...

Jamieson-Fausset-Brown Reformed @jfbcommentary

it--(compare Pro 6:23); denotes the instruction of parents (Pro 6:20), to which all the qualities of a safe guide and guard and ready teacher are ascribed. It prevents the ingress of evil by supplying good thoughts, even in dreams (Pro 3:21-23; Psa 19:9; Pe2 1:19).