Does Everything Happen for a Reason?

When some tragedy befalls, many christians always use the words “Don’t worry, everything happens for a reason” as the immediate words of comfort. But does everything really happen for a reason? Is there always a silver lining at the end of every evil thing that happens in our lives?