it is an ill wind that blows nobody good
No matter how bad a happening is, someone can usually gain something from it. — A proverb.
When Fred got hurt in the game John got a chance to play. It's an ill wind that blows nobody good.
Categories:
Source: A Dictionary of American Idioms