Meaning: sometimes bad things can be seen as being good
Example: When the teacher announced that they couldn't go outside at recess because of the weather he also said that every cloud has a silver lining, your recess has been doubled and I'm going to show a movie.