Every cloud has a silver lining.
Meaning: Every bad or negative situation can result in some benefit to you. (The presence of silver lining means that the sun is behind the cloud and will eventually emerge.)
Example: I know your business has suffered few setbacks this season. But remember, every cloud has a silver lining.