Berean Study Bible (BSB) - Ecclesiastes 6:2 >

God gives a man riches, wealth, and honor, so that he lacks nothing his heart desires; but God does not allow him to enjoy them. Instead, a stranger will enjoy them. This is futile and a grievous affliction.

Jewish Publication Society of America Version (JPS1917) - Ecclesiastes 6:2 >

a man to whom God giveth riches, wealth, and honour, so that he wanteth nothing for his soul of all that he desireth, yet God giveth him not power to eat thereof, but a stranger eateth it; this is vanity, and it is an evil disease.