The Creator is to be remembered in due time.
Ecclesiastes 12:1 Remember also thy Creator in the days of thy youth, before the evil days come, and the years draw nigh, when thou shalt say, I have no pleasure in them; Ecclesiastes 12:2 before the sun, and the light, and the moon, and the stars, are darkened, and the clouds return after the rain; Ecclesiastes 12:3 in the day when the keepers of the house shall tremble, and the strong men shall bow themselves, and the grinders cease because they are few, and those that look out of the windows shall be darkened, Ecclesiastes 12:4 and the doors shall be shut in the street; when the sound of the grinding is low, and one shall rise up at the voice of a bird, and all the daughters of music shall be brought low; Ecclesiastes 12:5 yea, they shall be afraid of [that which is] high, and terrors [shall be] in the way; and the almond-tree shall blossom, and the grasshopper shall be a burden, and desire shall fail; because man goeth to his everlasting home, and the mourners go about the streets: Ecclesiastes 12:6 before the silver cord is loosed, or the golden bowl is broken, or the pitcher is broken at the fountain, or the wheel broken at the cistern, Ecclesiastes 12:7 and the dust returneth to the earth as it was, and the spirit returneth unto God who gave it.
The preacher's care to edify.
Ecclesiastes 12:8 Vanity of vanities, saith the Preacher; all is vanity. Ecclesiastes 12:9 And further, because the Preacher was wise, he still taught the people knowledge; yea, he pondered, and sought out, [and] set in order many proverbs. Ecclesiastes 12:10 The Preacher sought to find out acceptable words, and that which was written uprightly, [even] words of truth. Ecclesiastes 12:11 The words of the wise are as goads; and as nails well fastened are [the words of] the masters of assemblies, [which] are given from one shepherd. Ecclesiastes 12:12 And furthermore, my son, be admonished: of making many books there is no end; and much study is a weariness of the flesh.
The fear of God is the chief antidote of vanity.
Ecclesiastes 12:13 [This is] the end of the matter; all hath been heard: fear God, and keep his commandments; for this is the whole [duty] of man. Ecclesiastes 12:14 For God will bring every work into judgment, with every hidden thing, whether it be good, or whether it be evil.