B. C. Forbes said this quote

Triumph often is nearest when defeat seems inescapable.