That a spirit is outside of the body does not mean that the person is deceased. Nor does it mean that they have only a short time to live. It means only that Satan has been making attempts to take their spirit out of the body, and into hell.
If you see that someone's spirit has left their body, command it to return to the body instantaneously. Command it to never ever leave the body. Command it to speak only God's truth. Command it to know only God's power. Command it to know only one God. The Lord God Almighty is El Shaddai.
The Lord God Almighty El Shaddai