James Joyce said this quote

He watched the scene and thought of life; and (as always happened when he thought of life) he became sad. A gentle melancholy took possession of him. He felt how useless it was to struggle against fortune, this being the burden of wisdom which the ages had bequeathed him.