Napoleon Hill said this quote

Most great people have attained their greatest success just one step beyond their greatest failure.