Every Cloud has a Silver Lining means: You can derive some benefit from every bad thing that happens to you.
Example of use: "I found a new job after all and I like this one much better than the last!" Answer: "You see, every cloud has a silver lining."
The origin of the idiom “every cloud has a silver lining” is most likely traceable to the year 1634, when John Milton Penned his masque Comus. In it, the quote appears as “Was I deceived or did a sable cloud Turn forth her silver lining on the night?”