Ecclesiastes 4:16

As for the people that have been before him, and that come after him, they are innumerable: yet is not their joy the greater through him. This is also a vain thing and a vexation of mind. (v17) When thou comest into the house of God, keep thy foot and draw nigh, that thou mayest hear: that is better than the offerings of fools, for they know not what evil they do

Ecclesiastes 1:14

Thus I have considered all the things that come to pass under the Sun, and lo, they are all but vanity and vexation of mind.

Judges 9:19-20

If, then, ye have dealt purely and truly with Jerubbaal and with his house this day: then rejoice ye in Abimelech, and let him also rejoice in you.

2 Samuel 15:12-13

And Absalom sent also for Ahithophel the Gilonite, David's counselor, and fetched him out of his city Giloh, when he sacrificed sacrifices. And there was wrought strong treason. And the people drew to Absalom in great multitude.

2 Samuel 18:7-8

where the people of Israel were put to the worse before the servants of David, and there was a great slaughter that day, even of twenty thousand men.

2 Samuel 19:9

And all the people were at strife throughout all the tribes of Israel, saying, "The king delivered us out of the hand of our enemies. And he delivered us out of the hand of the Philistines.

1 Kings 1:5-7

But Adonijah the son of Haggith exalted himself, saying, "I will be king." And he gat him a chariot and horsemen and fifty men to run before him.

1 Kings 1:40

And all the people came up after him piping with pipes and rejoicing greatly, so that the earth rang with the sound of them.

1 Kings 12:10-16

And the young men that were brought up with him, answered him, saying, "This people that have said unto thee, 'Thy father made our yoke heavy, make thou it us lighter' - thus answer them: 'My little finger shall be weightier than my father's loins!

Ecclesiastes 2:11

But when I considered all the works that my hands had wrought, and all the labours that I had taken therein: Lo, all was vanity and vexation of mind, and nothing of any value under the Sun.

Ecclesiastes 2:17

Thus began I to be weary of my life, in so much that I could away with nothing that is done under the Sun, for all was but vanity and vexation of mind:

Ecclesiastes 2:26

He giveth unto man, what it pleaseth him; whether it be wisdom, understanding, or gladness. But unto the sinner he giveth weariness and sorrow, that he may gather and heap together the thing, that afterward shall be given unto him whom it pleaseth God. This is now a vain thing, yea a very disquietness and vexation of mind.

Treasury of Scripture Knowledge

Summary

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.

General references

Bible References

No end

2 Samuel 15:12
And Absalom sent also for Ahithophel the Gilonite, David's counselor, and fetched him out of his city Giloh, when he sacrificed sacrifices. And there was wrought strong treason. And the people drew to Absalom in great multitude.
1 Kings 1:5
But Adonijah the son of Haggith exalted himself, saying, "I will be king." And he gat him a chariot and horsemen and fifty men to run before him.
1 Kings 12:10
And the young men that were brought up with him, answered him, saying, "This people that have said unto thee, 'Thy father made our yoke heavy, make thou it us lighter' - thus answer them: 'My little finger shall be weightier than my father's loins!

They also

Judges 9:19
If, then, ye have dealt purely and truly with Jerubbaal and with his house this day: then rejoice ye in Abimelech, and let him also rejoice in you.
2 Samuel 18:7
where the people of Israel were put to the worse before the servants of David, and there was a great slaughter that day, even of twenty thousand men.
2 Samuel 19:9
And all the people were at strife throughout all the tribes of Israel, saying, "The king delivered us out of the hand of our enemies. And he delivered us out of the hand of the Philistines.

General references

Ecclesiastes 1:2
All is but vanity - sayeth the Preacher - all is but plain vanity.
Ecclesiastes 6:11
Many things there be that increase vanity, and what hath a man else?