Every cloud has a silver lining

We should stay optimistic despite hard times and obstacles because all difficulties will finally come to an end and everything will be alright

Examples

I’ve lost my job and I don’t know how to make ends meet the following month. I hope, that every cloud has a silver lining and I’ll get a new job soon.