Walk with the wise and become wise, for a companion of fools suffers harm.
NIV
He who walks [as a companion] with wise men is wise, but he who associates with [self-confident] fools is [a fool himself and] shall smart for it. [Isa. 32:6.]AMP
He that walketh with wise men shall be wise: but a companion of fools shall be destroyed.
KJV