Good judgment and knowledge come from wisdom (Psalm 111:10).
The psalmist admits he used to wander like a lost sheep (Psalm 119:176).
now I keep your word: See Psalm 119:25–29.
You are good, and You do what is good: God's character is perfect (Psalm 97:2; James 1:17; 1 John 1:5).