Was vernunftig ist, das ist Wirklich; und was wirklich ist, das ist vernunftig.
In addition, the original words of this sentence come from Hegel rather than Goethe