damn by association

📖 general
Meaning
To be criticized or condemned simply because of one's connection or relationship with a person or group that is disapproved of, rather than for one's own actions.
Literal Meaning
To be condemned or cursed because of who one is associated with.
Example
“He was a good employee, but after his department was involved in the scandal, he felt he was damned by association.”