Bhagavad Gita 8.5

Chapter 8, Verse 5

अन्तकाले च मामेव स्मरन्मुक्त्वा कलेवरम्। यः प्रयाति स मद्भावं याति नास्त्यत्र संशयः ॥

antakāle ca mām eva smaran muktvā kalevaram yaḥ prayāti sa madbhāvaṃ yāti nāstyatra sanśayaḥ || 8.5 ||

English translation

Whosoever, at the time of death, thinks only of Me and, thinking thus, leaves the body and goes forth, will assuredly know Me.

Shri Purohit Swami — Bhagavad Gita English translation

Commentary

If birth is a becoming, death also is a becoming, not by any means a cessation. The body is abandoned, but the soul goes on its way, tyaktvā kalevaram. Much then depends on what he is at the critical moment of his departure. For whatever form of becoming his consciousness is fixed on at the time of death and has been full of that always in its mind and thought before death, to that form he must attain, since the Prakriti by Karma works out the soul's thoughts and energies and that is in real fact her whole business.

Sri Aurobindo Ghose, Essays on the Gita, Second Series (1928), p. 48 — 'The Supreme Divine' (chapter context)