Ecclesiastes 11:8

But if a man shall live many years, and rejoice in them all; yet let him remember the days of darkness; for they shall be many. All that cometh is vanity.

Deuteronomy 32:29

O that they were wise, that they understood this, that they would consider their latter end!

Job 10:22

A land of darkness, as darkness itself; and of the shades of death, without any order, and where the light is as darkness.

Job 14:10

But man dieth, and wasteth away: yes, man yieldeth his breath, and where is he?

Job 15:23

He wandereth abroad for bread, saying, Where is it? he knoweth that the day of darkness is ready at his hand.

Job 18:18

He shall be driven from light into darkness, and chased out of the world.

Ecclesiastes 2:1-11

I said in my heart, Come now, I will prove thee with mirth, therefore enjoy pleasure: and behold, this also is vanity.

Ecclesiastes 2:15

Then said I in my heart, As it happeneth to the fool, so it happeneth even to me; and why was I then more wise? Then I said in my heart, that this also is vanity.

Ecclesiastes 2:17

Therefore I hated life; because the work that is wrought under the sun is grievous to me: for all is vanity and vexation of spirit.

Ecclesiastes 2:19

And who knoweth whether he shall be a wise man or a fool? yet shall he have rule over all my labor in which I have labored, and in which I have showed myself wise under the sun. This is also vanity.

Ecclesiastes 2:21-23

For there is a man whose labor is in wisdom, and in knowledge, and in equity; yet to a man that hath not labored in it, shall he leave it for his portion. This also is vanity and a great evil.

Ecclesiastes 2:26

For God giveth to a man who is good in his sight, wisdom, and knowledge, and joy: but to the sinner he giveth toil, to gather, and to amass, that he may give to him that is good before God. This also is vanity and vexation of spirit.

Ecclesiastes 3:12-13

I know that there is no good in them, but for a man to rejoice, and to do good in his life.

Ecclesiastes 4:8

There is one alone, and there is not a second; yes, he hath neither child nor brother: yet is there no end of all his labor; neither is his eye satisfied with riches; neither saith he, For whom do I labor, and bereave my soul of good? This is also vanity, yes, it is a grievous labor.

Ecclesiastes 4:16

There is no end of all the people, even of all that have been before them: they also that come after shall not rejoice in him. Surely this also is vanity and vexation of spirit.

Ecclesiastes 5:15-16

As he came into the world, naked shall he return to go as he came, and shall take nothing of his labor, which he may carry away in his hand.

Ecclesiastes 5:18-20

Behold that which I have seen: it is good and comely for one to eat and to drink, and to enjoy the good of all his labor that he taketh under the sun all the days of his life, which God giveth him: for it is his portion.

Ecclesiastes 6:6

Yes, though he liveth a thousand years twice told, yet hath he seen no good: do not all go to one place?

Ecclesiastes 6:11

Seeing there are many things that increase vanity, what is man the better?

Ecclesiastes 7:14

In the day of prosperity be joyful, but in the day of adversity consider: God also hath set the one over against the other, to the end that man should find nothing after him.

Ecclesiastes 8:12

Though a sinner doeth evil a hundred times, and his days are prolonged, yet surely I know that it will be well with them that fear God, who fear before him:

Ecclesiastes 8:15

Then I commended mirth, because a man hath no better thing under the sun, than to eat, and to drink, and to be merry: for that shall abide with him of his labor the days of his life, which God giveth him under the sun.

Ecclesiastes 12:1-5

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;

Jeremiah 13:16

Give glory to the LORD your God, before he shall cause darkness, and before your feet stumble upon the dark mountains, and while ye look for light, he shall turn it into the shades of death, and make it gross darkness.

Joel 2:2

A day of darkness and of gloominess, a day of clouds and of thick darkness, as the morning spread upon the mountains: a great people and a strong; there hath not been ever the like, neither shall be any more after it, even to the years of many generations.

Matthew 22:13

Then said the king to the servants, Bind him hand and foot, and take him away, and cast him into utter darkness: there shall be weeping and gnashing of teeth.

John 12:35

Then Jesus said to them, Yet a little while is the light with you. Walk while ye have the light, lest darkness come upon you: for he that walketh in darkness knoweth not whither he goeth.

Jude 1:18

That they told you there would be mockers in the last time, who would walk after their own ungodly lusts.

Treasury of Scripture Knowledge

Summary

But if a man live many years, and rejoice in them all; yet let him remember the days of darkness; for they shall be many. All that cometh is vanity.

General references

Bible References

If a man

Ecclesiastes 6:6
Yes, though he liveth a thousand years twice told, yet hath he seen no good: do not all go to one place?
Ecclesiastes 8:12
Though a sinner doeth evil a hundred times, and his days are prolonged, yet surely I know that it will be well with them that fear God, who fear before him:

Rejoice

Ecclesiastes 3:12
I know that there is no good in them, but for a man to rejoice, and to do good in his life.
Ecclesiastes 5:18
Behold that which I have seen: it is good and comely for one to eat and to drink, and to enjoy the good of all his labor that he taketh under the sun all the days of his life, which God giveth him: for it is his portion.
Ecclesiastes 8:15
Then I commended mirth, because a man hath no better thing under the sun, than to eat, and to drink, and to be merry: for that shall abide with him of his labor the days of his life, which God giveth him under the sun.

Yet

Ecclesiastes 7:14
In the day of prosperity be joyful, but in the day of adversity consider: God also hath set the one over against the other, to the end that man should find nothing after him.
Ecclesiastes 12:1
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;
Deuteronomy 32:29
O that they were wise, that they understood this, that they would consider their latter end!
Job 10:22
A land of darkness, as darkness itself; and of the shades of death, without any order, and where the light is as darkness.
Job 14:10
But man dieth, and wasteth away: yes, man yieldeth his breath, and where is he?
Job 15:23
He wandereth abroad for bread, saying, Where is it? he knoweth that the day of darkness is ready at his hand.
Job 18:18
He shall be driven from light into darkness, and chased out of the world.
Jeremiah 13:16
Give glory to the LORD your God, before he shall cause darkness, and before your feet stumble upon the dark mountains, and while ye look for light, he shall turn it into the shades of death, and make it gross darkness.
Joel 2:2
A day of darkness and of gloominess, a day of clouds and of thick darkness, as the morning spread upon the mountains: a great people and a strong; there hath not been ever the like, neither shall be any more after it, even to the years of many generations.
Matthew 22:13
Then said the king to the servants, Bind him hand and foot, and take him away, and cast him into utter darkness: there shall be weeping and gnashing of teeth.
John 12:35
Then Jesus said to them, Yet a little while is the light with you. Walk while ye have the light, lest darkness come upon you: for he that walketh in darkness knoweth not whither he goeth.
Jude 1:18
That they told you there would be mockers in the last time, who would walk after their own ungodly lusts.

All that

Ecclesiastes 2:1
I said in my heart, Come now, I will prove thee with mirth, therefore enjoy pleasure: and behold, this also is vanity.
Ecclesiastes 4:8
There is one alone, and there is not a second; yes, he hath neither child nor brother: yet is there no end of all his labor; neither is his eye satisfied with riches; neither saith he, For whom do I labor, and bereave my soul of good? This is also vanity, yes, it is a grievous labor.
Ecclesiastes 5:15
As he came into the world, naked shall he return to go as he came, and shall take nothing of his labor, which he may carry away in his hand.
Ecclesiastes 6:11
Seeing there are many things that increase vanity, what is man the better?

General references

Ecclesiastes 1:2
Vanity of vanities, saith the preacher, vanity of vanities; all is vanity.