I have not only been told how the awakening happens, I have been shown by firsthand experience. The actual experience happened to me so that I could have a full knowledge of how it occurs.
I was brought into a state in which my physical senses were inoperative—very much, then, like the state of people who are dying. However, my deeper life and thought remained intact so that I could perceive and retain what was happening to me and what does happen to people who are being awakened from death. I noticed that my physical breathing was almost suspended, with a deeper breathing, a breathing of the spirit, continuing along with a very slight and silent physical one.
At first then a connection was established between my heartbeat and the heavenly kingdom, because that kingdom corresponds to the human heart. I also saw angels from that kingdom, some at a distance, but two sitting close to my head. The effect was to take away all my own affection but to leave me in possession of thought and perception.
I remained in this state for several hours. Then the spirits who were around me gradually drew away, thinking that I was dead. I sensed a sweet odor like that of an embalmed body, for when heavenly angels are present anything having to do with a corpse smells sweet. When spirits sense this, they cannot come near. This is also how evil spirits are kept away from our spirit when we are being admitted into eternal life.
The angels who were sitting beside my head were silent, simply sharing their thoughts with mine (when these are accepted [by the deceased], the angels know that the person’s spirit is ready to be led out of the body). They accomplished this sharing of thoughts by looking into my face. This is actually how thoughts are shared in heaven.
Since I had been left in possession of thought and perception so that I could learn and remember how awakening happens, I noticed that at first the angels were checking to see whether my thoughts were like those of dying individuals, who are normally thinking about eternal life. They wanted to keep my mind in these thoughts. I was later told that as the body is breathing its last, our spirit is kept in its final thought until eventually it comes back to the thoughts that flowed from our basic or ruling affection in the world.
Especially, I was enabled to perceive and even to feel that there was a pull, a kind of drawing out of the deeper levels of my mind and therefore of my spirit from my body; and I was told that this was being done by the Lord and is what brings about our resurrection.
from Heaven and Hell, Sections 448, 449