idiom
a silver lining
Meaning
a positive aspect in a difficult situation
Example
Losing my job was tough, but the **silver lining** was that I found a better one.