[1 of 3] Swedenborg (1688-1772, Sweden): primary subject "Afterlife, memory in" (search under Afterlife/Afterlife, Heaven, Hell)": source "Heaven and Hell": detail "Section 464[1] - 464[2]"
Although the external or natural memory remains in man after death, the merely natural things in it are not reproduced in the other life, but only the spiritual things adjoined to the nature by correspondences; but when these are present to the sight they appear in exactly the same form as they had in the natural world; for all things seen in the heavens have just the same appearance as in the world, although in their essence they are not natural but spiritual.
 But the external or natural memory in respect to the things in it that are derived from the material, and from time and space and from other properties of nature, is not serviceable to the spirit in the way that it was serviceable to it in the world, for whenever man thinks in the world from his external sensual, and not at the same time from his internal or intellectual sensual, he thinks naturally and not spiritually; but in the other life when he is a spirit in the spiritual world he does not think naturally but spiritually, and to think spiritually is to think intellectually or rationally. For this reason the external or natural memory in respect to its material contents is then quiescent, and only those things that man has imbibed in the world by means of material things, and has made rational, come into use.

[2 of 3] Swedenborg (1688-1772, Sweden): primary subject "Afterlife, memory in" (search under Afterlife/Afterlife, Heaven, Hell)": source "Spiritual Experiences, vol.2": detail "Section 3230"
By experience I have been informed that whatever of good anyone has thought and spoken during the life of the body can be brought forth. The person is let back into that state, then all and the least things open up to him, and at the same time then the angels know whatever he has thought and spoken. So the memory of personal details is not erased in the other life. But what one has thought and spoken is not uncovered unless the Lord permits and grants it.

[3 of 3] Swedenborg (1688-1772, Sweden): primary subject "Afterlife, intelligence in" (search under Afterlife/Afterlife, Heaven, Hell)": source "Heaven and Hell": detail "Section 355 - 356"
In the spiritual world after death, all things that are in the natural memory and are in immediate conjunction with the things of bodily sense (which is true of knowledges) then become quiescent; and only such rational principles as are drawn from these then serve for thought and speech. For man carries with him his entire natural memory, but its contents are not then under his view, and do not come into his thought as when he lived in the world. He can take nothing from that memory and bring it forth into spiritual light because its contents are not objects of that light. But those things of the reason and understanding that man has acquired from knowledges while living in the body are in accord with the light of the spiritual world; consequently so far as the spirit of man has been made rational in the world through knowledge and science it is to the same extent rational after being loosed from the body; for man is then a spirit, and it is the spirit that thinks in the body.
 But in respect to those that have acquired intelligence and wisdom through knowledge and science, who are such as have applied all things to the use of life, and have also acknowledged the Divine, loved the Word [Bible], and lived a spiritual moral life, to such the sciences have served as a means of becoming wise, and also of corroborating the things pertaining to faith. The interiors of the mind of such have been perceived by me, and were seen as transparent from light of a glistening white, flamy, or blue color, like that of translucent diamonds, rubies, and sapphires; and this in accordance with confirmations in favor of the Divine and Divine truths drawn from science. Such is the appearance of true intelligence and wisdom when they are presented to view in the spiritual world. This appearance is derived from the light of heaven; and that light is Divine truth going forth from the Lord, which is the source of all intelligence and wisdom.