God gives some people wealth, possessions and honor, so that they lack nothing their hearts desire, but God does not grant the ability to enjoy them, and strangers enjoy them instead. This is meaningless, a grievous evil.
NIV
A man to whom God has given riches, possessions, and honor, so that he lacks nothing for his soul of all that he might desire, yet God does not give him the power or capacity to enjoy them [things which are gifts from God], but a stranger [in whom he has no interest succeeds him and] consumes and enjoys them. This is vanity (emptiness, falsity, and futility); it is a sore affliction! [Luke 12:20.]AMP
A man to whom God hath given 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.
KJV
Those who love money never have enough; those who love wealth are never satisfied with their income. This too is meaningless.
NIV
He who loves silver will not be satisfied with silver, nor he who loves abundance with gain. This also is vanity (emptiness, falsity, and futility)!
AMP
He that loveth silver shall not be satisfied with silver; nor he that loveth abundance with increase: this is also vanity.
KJV
Surely the fate of human beings is like that of the animals; the same fate awaits them both: As one dies, so dies the other. All have the same breath; humans have no advantage over animals. Everything is meaningless.
NIV
For that which befalls the sons of men befalls beasts; even [in the end] one thing befalls them both. As the one dies, so dies the other. Yes, they all have one breath and spirit, so that a man has no preeminence over a beast; for all is vanity (emptiness, falsity, and futility)!
AMP
For that which befalleth the sons of men befalleth beasts; even one thing befalleth them: as the one dieth, so dieth the other; yea, they have all one breath; so that a man hath no preeminence above a beast: for all is vanity.
KJV