It is quite true what philosophy says: that life must be understood backwards. But then one forgets the other principle: that it must be lived forwards.
Soren Kierkegaard, The Journals of Soren Kierkegaard, Volume IV (1843). The quotation is often paraphrased: Life can only be understood backwards; but it must be lived forwards.