The line appears in Wilde’s 1892 play Lady Windermere’s Fan, where the character Lord Darlington reflects on the contrast between human struggles and hope for something better.