All of us have a
transient-invisible-body (Antara-bhava). While we are alive this
is called mind-consciousness. It is commonly referred to as the
soul. When we are asleep, this mind-consciousness does not sleep.
Instead, it combs through the past records that are stored in the
eighth mind-consciousness (All of us have eight consciousness. In
addition to the six sense-consciousness, namely, eyes, ears, nose,
tongue, body and mind, there are the seventh [Klista-mano-vijnana]
and eighth [Alaya-vijnana] mind-consciousness. The eighth
consciousness is the planting field of the mind. The seeds of all
our encounters, both virtuous and evil, of our aeons of many past
lives are planted here. The seventh mind-consciousness gives rise
to the transient-invisible-body.) When a person is dead, his six
sense-organs, namely, the eye, ear, nose, tongue, body and mind
stop functioning. His sense of sight, hearing, smell, taste, touch
and perception also cease to function. Thereafter, the seventh
mind-consciousness no longer resides in the body. It leaves the
body and begins to search for the right conditions for rebirth to
the next life. (At this stage, the mind-consciousness is called a
transient-invisible-body. It is an intermediate existence between
death and rebirth to the next life.) The right conditions of
rebirth are found within a period of 49 days, on each of the seven
cycles of the seventh day after the person has passed away ( i.e.
7th, 14th, 21st, 28th,
49th day).
http://www.jenchen.org.sg/vol8no1a.htm