Wisdom is there before the face of the discerning, but the eyes of a fool are at the ends of the earth.
In context
22A glad heart is good medicine, but a broken spirit dries up the bones. 23The wicked man takes a bribe out of the fold of a robe to twist the paths of justice. 24Wisdom is there before the face of the discerning, but the eyes of a fool are at the ends of the earth. 25A foolish son is a vexation to his father and bitterness to the one who bore him. 26To fine the innocent is not good, nor to flog nobles for their honesty.