Passage
Who knows the spirit of man, whether it goes upward, and the spirit of the animal, whether it goes downward to the earth?”
Who knows the spirit of man, whether it goes upward, and the spirit of the animal, whether it goes downward to the earth?”
Ecclesiastes 3:19 For that which happens to the sons of men happens to animals. Even one thing happens to them. As the one dies, so the other dies. Yes, they have all one breath; and man has no advantage over the animals: for all is vanity.
Ecclesiastes 3:20 All go to one place. All are from the dust, and all turn to dust again.
Ecclesiastes 3:21 Who knows the spirit of man, whether it goes upward, and the spirit of the animal, whether it goes downward to the earth?”
Ecclesiastes 3:22 Therefore I saw that there is nothing better, than that a man should rejoice in his works; for that is his portion: for who can bring him to see what will be after him?
The verse centers on "Spirit", "knows", "whether", "goes", "upward", and "animal". It is saying that the verse draws attention to "Spirit" and "knows", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 20's "All go to one place All are..." into verse 22's "Therefore I saw that there is nothing...", so "Spirit" and "knows" belong inside that flow. In Ecclesiastes context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "Spirit" and "knows" with trust shaped by these words, not by a vague optimism outside the passage.