I assume you're referring to Ecclesiastes 9:2 - well the entire chapter really.
Ecclesiastes happens to be one of my favorite books in the Bible. I very much enjoy the wisdom literature because there is some truly profound stuff there.
[bible=Ecclesiastes 9:1-5 HCSB]
Indeed, I took all this to heart and explained it all: the righteous, the wise, and their works are in God's hands. People don't know whether [to expect] love or hate. Everything lies ahead of them. Everything is the same for everyone: there is one fate for the righteous and the wicked, for the good and the bad, for the clean and the unclean, for the one who sacrifices and the one who does not sacrifice. As it is for the good, so it is for the sinner, as for the one who takes an oath, so for the one who fears an oath. This is an evil in all that is done under the sun: there is one fate for everyone. In addition, the hearts of people are full of evil, and madness is in their hearts while they live —after that they go to the dead. But there is hope for whoever is joined with all the living, since a live dog is better than a dead lion. For the living know that they will die, but the dead don't know anything. There is no longer a reward for them because the memory of them is forgotten. Their love, their hate, and their envy have already disappeared, and there is no longer a portion for them in all that is done under the sun.
[/bible]
You have to think of it this way. Christians and Non-Christian's have one fate in common. We die.
This is an amazing parallel - yes parallel and not tangential - to exactly what Christ preached. The crux of this passage comes not around the beginning, but the statement about a live dog being better than a dead lion. Dogs were reviled in this culture. They weren't pets, they were nasty garbage disposals at best. Lions, on the other hand, are seen as regal creatures throughout history (think Egypt, Babylon, Lion of Judah, etc.); they are always creatures of royalty, power, and great strength. Yet a dead lion is nothing more than a dead lion. A live dog is alive.
All fall short (Romans 3:23); we are all trapped in sin by nature. We're just as subject to the evils of this world as the unsaved and we're going to die the same physical death right alongside them.
Where the analogy comes into play on a deeper level is that we're better a dog in God's living kingdom than a dead lion in the world. We can all think of "great" (or infamous) leaders that have done amazing things of the world in business, politics, culture, religion, war, etc. However, it all passes. Think about the story of the woman that poured the perfume on Christ and how we have her emotions there. Her testimony lives on. She is alive in more ways than one, the cruel yet powerful dictator is dead and his kingdom long ago broken.
I'm very much reminded of a favorite poem of mine:
Ozymandias
By Percy Bysshe Shelley
I met a traveller from an antique land
Who said:—Two vast and trunkless legs of stone
Stand in the desert. Near them on the sand,
Half sunk, a shatter'd visage lies, whose frown
And wrinkled lip and sneer of cold command
Tell that its sculptor well those passions read
Which yet survive, stamp'd on these lifeless things,
The hand that mock'd them and the heart that fed.
And on the pedestal these words appear:
"My name is Ozymandias, king of kings:
Look on my works, ye mighty, and despair!"
Nothing beside remains: round the decay
Of that colossal wreck, boundless and bare,
The lone and level sands stretch far away.
This was about a statue of Ramses the Great. It lies broken, and this person walks away not with a vision of the greatness of the king, but thinking about the sculptor who made the image. He was the creator of the image and influenced this powerful leader, but essentially both are lost; those passions Solomon spoke about are long gone.
To me the above just bristles with anticipation of Christ who provides the way to fix our state. Grace.