He layeth up sound wisdom for the righteous (Prov 2:7)
Proverbs Concerning: Our Relationship To The Lord: Prov 3:5-8
5) Trust in the LORD with all thine heart; and lean not unto thine own understanding.
6) In all thy ways acknowledge him, and he shall direct thy paths.
7) Be not wise in thine own eyes: fear the LORD, and depart from evil.
Judges 21:25 King James Version (KJV) In those days there was no king in Israel: every man did that which was right in his own eyes.Here is how John Wesley remarked on that verse.
Right in his own eyes — What wonder was it then, if all wickedness overflowed the land? Blessed be God for magistracy! (from http://www.christnotes.org/commentary.php?com=wes&b=7&c=21)Nonetheless, that cryptic remark did not seem to be sufficient. Therefore, in a latter era King Solomon addressed the same issue in the Book of Proverbs.