Proverbs 13:20 in the King James Version
He that walketh with wise men shall be wise: but a companion of fools shall be destroyed.
Context
19 Longing fulfilled is sweet to the soul, but fools detest turning from evil.
20 One who walks with wise men grows wise, but a companion of fools suffers harm.
21 Misfortune pursues sinners, but prosperity rewards the righteous.