When we die, the spirit man has is temporal, it returns to God, there is no existence any more for that person.
The Spirit is life because of righteousness, the Spirit of God who raised up Jesus Christ from the dead dwells in us by faith, and our mortal bodies are raised up by His Spirit that dwells in us.
But if no eternal Spirit is in our body, ( because the spirit of man was temporally in him, we need the eternal Spirit. Hebrews 9:14.) he is dead, and the spirit he had is returned to God who gave it/the end of that persons existance.
Ecclesiastes 12:7 Then shall the dust return to the earth as
it was: and the
spirit shall return unto God who
gave it.
Romans 8:10 And if Christ be in you, the body is dead because of sin; but the Spirit is life because of righteousness.
11 But if the Spirit of him that raised up Jesus from the dead dwell in you, he that raised up Christ from the dead shall also quicken your mortal bodies by his Spirit that dwelleth in you.
I know that complicated confused answers, do not represent the simplicity of Christ. ( more like the subtilty of the serpent.)
It is clear already, that there are the temporary spirit of man, and the eternal Spirit of God.
No man can retain his spirit, the spirit of man that is in him, knows nothing of the Spirit of God.
The first man was made a living soul, but the second man is made a quickening Spirit.
We also are not to believe every spirit, many false prophets are teaching us now. Try the spirits, whether they are of God, or not.
Ecclesiastes 8:8 There is no
man that hath power over the
spirit to retain the
spirit; neither hath he power in the day of death: and there is no discharge in that war; neither shall wickedness deliver those that are given to it.
1 Corinthians 2:11 For what
man knoweth the things of a
man, save the
spirit of
man which is in him? even so the things of God knoweth no
man, but the
Spirit of God.
1 Corinthians 15:45 And so it is written, The first
man Adam was made a living soul; the last Adam was made a quickening Spirit.
1 John 4:1 Beloved, believe not every
spirit, but try the
spirits whether they are of God: because
many false prophets are gone out into the world.
Regarding hell, death and the resurrection.
Who has Christ, has life, and who has not Jesus, has death. ( no Spirit of Christ, no resurrection, the spirit man had, has returned already to God who gave it, and He died not give that spirit back, but those who have the Spirit of God are risen by His Spirit that dwells in them.)
Who is not found written in that Lambs book of life is dead while they live,( 1 Timothy 5:6.) and the end of all things is when death and hell are emptied out.
Revelation 20:14 And death and hell were cast into the lake of fire. This is the second death.
15 And whosoever was not found written in the book of life was cast into the lake of fire.