Charles Caleb Colton said this quote

No company is preferable to bad. We are more apt to catch the vices of others than virtues, as disease is far more contagious than health.