It means something good can come from a bad situation. The image goes back to John Milton's 1634 masque Comus, which describes a cloud with a silver lining.
Play the full Emoji Quiz: Guess the Phrase 15 questions · Medium · earn XP and climb the leaderboard