We get knowledge from books when/if we read, but wisdom comes directly from God. This wisdom pierces through just about any depth or height of foolishness and ignorance.
If any of you lacks wisdom [to guide him through a decision or circumstance], he is to ask of [our benevolent] God, who gives to everyone generously and without rebuke or blame, and it will be given to him.
JAMES 1:5 AMP
The Message version says;"if any of you doesn't know what he is doing, he should pray to the Father". From time to time, we may not know what we're doing, even if we appear to know what we're doing all the time, the wisdom that comes from God remains superior to human understanding, wisdom, strategy, rationalization or what have you.
Wisdom is the principal thing. Therefore, get wisdom and in all your getting,get understanding.