Václav Havel said this quote

Hope is not the conviction that something will turn out well but the certainty that something makes sense, regardless of how it turns out.