A silver lining is a metaphor for optimism in the common English-language idiom "Every cloud has a silver lining."
Origin
The origin of the phrase is most likely traced to John Milton's "Comus" (1634) with the lines,
References
Silver lining (idiom) Wikipedia(Text) CC BY-SA