Hermann Hesse said this quote

Granted, there is always much that is hidden, and we must not forget that the writing of history - however dryly it is done and however sincere the desire for objectivity - remains literature. History's third dimension is always fiction