黑狗得食，白狗當災

Idiom

 * 1)  someone benefits from their misdeeds, while someone else is punished or suffers consequences on behalf of the wrongdoer