Proverbs 17:24 in the King James Version
Wisdom is before him that hath understanding; but the eyes of a fool are in the ends of the earth.
Context
23 A wicked man receives a bribe in secret, to pervert the ways of justice.
24 Wisdom is before the face of one who has understanding, but the eyes of a fool wander to the ends of the earth.
25 A foolish son brings grief to his father, and bitterness to her who bore him.