Remember your creator in the days of your youth, before the days of trouble come, and the years draw near when you will say, "I have no pleasure in them"; before the sun and the light and the moon and the stars are darkened and the clouds return with the rain; in the day when the guards of the house tremble, and the strong men are bent, and the women who grind cease working because they are few, and those who look through the windows see dimly; when the doors on the street are shut, and the sound of the grinding is low, and one rises up at the sound of a bird, and all the daughters of song are brought low; when one is afraid of heights, and terrors are in the road; the almond tree blossoms, the grasshopper drags itself along and desire fails; because all must go to their eternal home, and the mourners will go about the streets; before the silver cord is snapped, and the golden bowl is broken, and the pitcher is broken at the fountain, and the wheel broken at the cistern, and the dust returns to the earth as it was, and the breath returns to God who gave it. Vanity of vanities, says the Teacher; all is vanity. (NRSV 12:1-8)
Remember now thy Creator in the days of thy youth, while the evil days come not, nor the years draw nigh, when thou shalt say, I have no pleasure in them; While the sun, or the light, or the moon, or the stars, be not darkened, nor the clouds return after the rain: 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 be darkened, And the doors shall be shut in the streets, when the sound of the grinding is low, and he shall rise up at the voice of the bird, and all the daughters of musick shall be brought low; Also when they shall be afraid of that which is high, and fears shall be in the way, and the almond tree shall flourish, and the grasshopper shall be a burden, and desire shall fail: because man goeth to his long home, and the mourners go about the streets: Or ever the silver cord be loosed, or the golden bowl be broken, or the pitcher be broken at the fountain, or the wheel broken at the cistern. Then shall the dust return to the earth as it was: and the spirit shall return unto God who gave it. Vanity of vanities, saith the preacher; all is vanity. (KJV 12:1-8)
This great poem speaks about how every person will eventually die, just as the world itself will fall apart and eventually come to an end. It urges people to remember God while they can, because everyone is headed towards the grave. Ecclesiastes might contradict what he said earlier about the afterlife, here, when he says that the spirit will return to God.