Elevation at Death
21
prayāṇa-kāle manasā 'calena bhaktyā yukto yoga-balena caiva bhruvor madhye prāṇam āveśya samyak sa taṁ paraṁ puruṣam upaiti divyam
“One who, at the time of death, fixes his life air between the eyebrows and in full devotion engages himself in remembering the Supreme Lord, will certainly attain to the Supreme Personality of God-head.” (Bg. 8.10)
Just as a student studies a subject for four or five years and then takes his examination and receives a degree, similarly, with the subject of life, if we practice during our lives for the examination at the time of death, and if we pass the examination, we are transferred to the spiritual world. Our whole life is examined at the time of death.
yaṁ yaṁ vāpi smaran bhāvaṁ tyajaty ante kalevaram taṁ tam evaiti kaunteya sadā tad-bhāva-bhāvitaḥ
“Whatever state of being one remembers when he quits his body, that state he will attain without fail.” (Bg. 8.6)
There is a Bengali proverb that says that whatever one does for perfection will be tested at the time of his death. In  Bhagavad-gītā , Kṛṣṇa describes what one should do when giving up the body. For the  dhyāna-yogī  (meditator) Śrī Kṛṣṇa speaks the following verses: