臭い物に蝿がたかる(くさいものにはえがたかる)

Japanese vocabulary

Meaning: flies are attracted to foul smells; ruffians flock together

See it used in real works