нет худа без добра

Etymology
lit. 'there is no bad without good'.

Proverb

 * 1) every cloud has a silver lining in every bad situation there is an element of good