Joseph Conrad said this quote

Droll thing life is -- that mysterious arrangement of merciless logic for a futile purpose. The most you can hope from it is some knowledge of yourself -- that comes too late -- a crop of inextinguishable regrets.