Ecclesiastes 6:3

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!”

Ecclesiastes 8:12

8:12 Even though a sinner might commit a hundred crimes and still live a long time,

yet I know that it will go well with God-fearing people – for they stand in fear before him.