minden rosszban van valami jó

Etymology
, literally "there is something good in every bad"

Proverb

 * 1) every cloud has a silver lining