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
Sacrifice and offering you did not desire – but my ears you have opened – burnt offerings and sin offerings you did not require.
NIV
Sacrifice and offering You do not desire, nor have You delight in them; You have given me the capacity to hear and obey [Your law, a more valuable service than] burnt offerings and sin offerings [which] You do not require.
AMP
Sacrifice and offering thou didst not desire; mine ears hast thou opened: burnt offering and sin offering hast thou not required.
KJV