Srimad Bhagavatam Canto 11, Chapter 22, Text 39

SB 11.22.39

 natmanam yat smaret punah
jantor vai kasyacid dhetor
 mrtyur atyanta-vismrtih
When the living entity passes from the present body to the next body, which is created by his own karma, he becomes absorbed in the pleasurable and painful sensations of the new body and completely forgets the experience of the previous body. This total forgetfulness of one’s previous material identity, which comes about for one reason or another, is called death.
Depending on one’s karma, or fruitive activities, one may achieve a beautiful, wealthy or powerful body or be degraded to an abominable condition of life. Taking birth in heaven or in hell, the living entity learns to completely identify his ego with the new body and thus becomes absorbed in the pleasure, fear, opulence or suffering of the new body, completely forgetting the experiences of the previous body. Death occurs when the specific karma allotted to a physical body is finished. Since that particular body’s karma is used up, it can no longer act upon one’s mind; in that way one forgets the previous body. The new body is created by nature so that one can experience the karma currently in effect. Consequently one’s entire consciousness becomes absorbed in one’s current body in order that one can fully experience the results of his previous activities. Because the living entity falsely identifies himself as the body, bodily death is experienced as death of the soul. Actually, however, the soul is eternal and is never subject to creation or annihilation. This analytic knowledge of self-realization is easily understood in Krsna consciousness.
Srimad Bhagavatam Canto 11, Chapter 22, Text 38
Srimad Bhagavatam Canto 11, Chapter 22, Text 40