Live joyfully with the wife whom you love all the days of your vain life., which He has given you under the sun- all the days of your futility, for that is your portion in this life and in your work at which you toil under the son. (Ecclesiastes 9:7-9). [Amplified Bible].
7-9 The teacher is not afraid to speak of God as concerned with our present life. We should start with the assumption that our circumstances have come to us with God's approval. Let us make the most of life. Let each day be a festal day, such as when we put on our best clothes. Our hair must not be unkempt like that of mourners (cf. Ezra 9:3) but should be neat (cf. Psalm 23:5; Amos 6:6). God's approval is not inconsistent with life in a world of frustration. If God has given us the blessing of a wife and, presumably, a family, we are to find happines in the precious gift of love. This is what Solomon himself failed to find (see Eccl 7:23-29).
Food, drink, clothing, and family union form a God-given basis for the good life; and governments today regard them as human rights. But the breadwinner is to be indeed the breadwinner and is to live the good life with an honest day's work. One knows the degrading feelings that come through continued unemployment and the dangers that surround the son who can become a playboy through his father's money (Eccl 2:19). The Bible has a firm doctrine of work, summed up in 2 Thess 3:6-13.
[NIV BIBLE COMMENTARY Volume I: Old Testament].
JESUS IS LORD.