You can achieve some benefit from every bad thing that happens to you.
John Milton coined the phrase ‘silver lining’ in his poem Comus: A Mask Presented at Ludlow Castle, 1634