Every man to whom God hath given wealth and riches, and hath given him power to eat of it, and to accept his portion, and to rejoice in his labour, this is a gift of God.
Read all of Ecclesiastes 5 YLT
Read Ecclesiastes 5:19 in another translation