A classic example of:
"You lie down with dogs, you get up with fleas."
“Where there is a stink, there is sh*t.”