Ecclesiastes 6:2-3

6:2 God gives a man riches, property, and wealth

so that he lacks nothing that his heart desires,

yet God does not enable him to enjoy the fruit of his labor

instead, someone else enjoys it!

This is fruitless and a grave misfortune.

6:3 Even if a man fathers a hundred children and lives many years –

even if he lives a long, long time, but cannot enjoy his prosperity –

even if he were to live forever

I would say, “A stillborn child is better off than he is!”