Robert Louis Stevenson said this quote

To look back upon the past year, and see how little we have striven and to what small purpose: and how often we have been cowardly and hung back, or temerarious and rushed unwisely in; and how every day and all day long we have transgressed the law of kindness; -it may seem a paradox, but in the bitterness of these discoveries, a certain consolation resides. Life is not designed to minister to a man's vanity. He goes upon his long business most of the time with a hanging head, and all the time like a blind child. Full of rewards and pleasures as it is - so that to see the day break or the moon rise, or to meet a friend, or to hear the dinner-call when he is hungry, fills him with surprising joys - this world is yet for him no abiding city. Friendships fall through, health fails, weariness assails him; year after year, he must thumb the hardly varying record of his own weakness and folly. It is a friendly process of detachment. When the time comes that he should go, there need be few illusions left about himself. Here lies one who meant well, tried a little, failed much: -surely that may be his epitaph, of which he need not be ashamed.