A discerning person keeps wisdom in view, but a fool's eyes wander to the ends of the earth. (NIV)
A man of understanding sets skillful and godly Wisdom before his face, but the eyes of a [self-confident] fool are on the ends of the earth. (AMP)
Wisdom is before him that hath understanding; but the eyes of a fool are in the ends of the earth. (KJV)