с кем поведёшься, от того и наберёшься

Etymology
lit. 'with whom you make friends, from them will you gain'.

Proverb

 * 1) a man is known by the company he keeps, he who lies down with dogs, gets up with fleas