The Psalmist says that he is wiser than his enemies, has more insight than all his teachers and more understanding than the elders. He tells us also why that is the case.
Here are his own words. We find them in Psalm 119:98-100:
“Your commands make me wiser than my enemies, for they are ever with me.
I have more insight than all my teachers, for I meditate on your statutes.
I have more understanding than the elders, for I obey your precepts.”
It is all because of the word of God.