Ecclesiastes 3:21

Who knoweth the spirit of man that goeth upward, and the spirit of the beast that goeth downward to the earth?

The verse turns to the passing of human life and raises the question of what determines a person's destiny. It holds open the prospect that people will live again beyond that passing. It does not explain here how that destiny is determined.