work out for the best

work out for the best

[for a bad situation] to turn out all right in the end. Don't worry. Everything will work out for the best. I think that nothing ever works out for the best.
See also: out, work