Proverbs 28:11 in the King James Version
The rich man is wise in his own conceit; but the poor that hath understanding searcheth him out.
Context
10 Whoever causes the upright to go astray in an evil way, he will fall into his own trap; but the blameless will inherit good.
11 The rich man is wise in his own eyes; but the poor who has understanding sees through him.
12 When the righteous triumph, there is great glory; but when the wicked rise, men hide themselves.