Two related truth, one from the Old Testament and one from the New:

Proverbs 12:26 – The righteous should choose his friends carefully, for the way of the wicked leads them astray.

1 Corinthians 15:33 – Do not be deceived: “Evil company corrupts good habits.”  Or, “Bad company corrupts good character.”

See any connection?