Every cloud has a silver lining.

Proverb
Every cloud has a silver lining. — Proverb