The Holy Spirit resides in the souls of those who obey God. It is He who brings “spiritual life” to the soul. That is why they call mortal sins “deadly sins.” The Holy Spirit moves out (He can not abide in a defiled temple) and so their souls are made dead by their mortal sins and they no longer have “spiritual life.”
1 Jn 3:24
Now he who keeps His commandments abides in Him, and He in him. And by this we know that He abides in us, by the Spirit whom He has given us.
The Holy Spirit lives within/abides in us when we keep God’s commandments.
Acts 5:32
And we are His witnesses to these things, and so also is the Holy Spirit whom God has given to those who obey Him.”
As long as we obey God, we have Him residing in our souls. It is His presence in our souls that sanctifies our souls and gives them spiritual life.
Jude 1:17-19
But you, beloved, remember the words which were spoken before by the apostles of our Lord Jesus Christ: 18 how they told you that there would be
mockers in the last time who would
walk according to their own ungodly lusts. 19
These are sensual persons, who cause divisions, not having the Spirit.
Disobedient persons do not have the Holy Spirit living in their souls.
Hyperbole again to show how deadly mortal sin is:
Heb 6:4-6
For it is impossible for those who were once enlightened, and have tasted the heavenly gift, and have
become partakers of the Holy Spirit, 5 and have tasted the good word of God and the powers of the age to come, 6 if they fall away, to renew them again to repentance, since they crucify again for themselves the Son of God, and put Him to an open shame.
Rom 8:11
But
if the Spirit of Him who raised Jesus from the dead dwells in you, He who raised Christ from the dead will also give life to your mortal bodies through His Spirit who dwells in you.
If the Holy Spirit is abiding in us when we die, then He will give life to our mortal bodies at our resurrection. If He is not abiding in us when we die, then He will destroy (damn) us. God is a consuming fire.
Heb 12:29
For our God is a consuming fire.
So, if persons have no sins on their souls when they die, they go directly to heaven.
1 Pet 1:6-7
In this you greatly rejoice, though now for a little while, if need be, you have been grieved by various trials, 7 that the genuineness of your faith, being much more precious than gold that perishes,
though it is tested by fire, may be found to praise, honor, and glory at the revelation of Jesus Christ,
If persons have venial sins on their souls when they die, then they go to purgatory (prison) until the bad works (venial sins) are atoned for.
Matthew 18:34 They are saved, but must be purified first before they can enter heaven because no imperfection can defile heaven.
1 Jn 3:3
1 Cor 3:15
If anyone’s work is burned, he will suffer loss; but
he himself will be saved, yet so as
through fire.
If persons have defiled their souls by mortal sins and do not repent before death, then they themselves are thrown into hellfire.
Mat 13:38-42
The field is the world, the good seeds are the sons of the kingdom, but the tares are the sons of the wicked one. 39 The enemy who sowed them is the devil, the harvest is the end of the age, and the reapers are the angels. 40 Therefore as the tares are gathered and burned in the fire, so it will be at the end of this age. 41
The Son of Man will send out His angels, and they will gather out of His kingdom all things that offend, and those who practice lawlessness, 42 and will cast them into the furnace of fire. There will be wailing and gnashing of teeth.
God is a consuming fire. We are each tested by fire when we die.
Those who have no sins on their souls when they die suffer no loss at all. They immediately enter heaven because they only have good works.
Those with venial sins on their souls are purified by the fire. They and their good works are saved, but they suffer loss, because their bad works must be burned away before they may enter heaven.
Those who offend God with mortal sins on their souls are themselves thrown into hellfire. They are not saved.
Ez 33:12-16
‘The righteousness of the righteous man shall not deliver him in the day of his transgression; as for the wickedness of the wicked, he shall not fall because of it in the day that he turns from his wickedness; nor shall the righteous be able to live because of his righteousness in the day that he sins.’ 13 When I say to the righteous that he shall surely live, but he trusts in his own righteousness and commits iniquity, none of his righteous works shall be remembered; but because of the iniquity that he has committed, he shall die. 14 Again, when I say to the wicked, ‘You shall surely die,’ if he turns from his sin and does what is lawful and right, 15 if the wicked restores the pledge, gives back what he has stolen, and walks in the statutes of life without committing iniquity, he shall surely live; he shall not die. 16 None of his sins which he has committed shall be remembered against him; he has done what is lawful and right; he shall surely live.
Mat 7:13-14
Enter by the narrow gate; for wide is the gate and broad is the way that leads to destruction, and there are many who go in by it. 14 Because narrow is the gate and difficult is the way which leads to life, and there are few who find it.