Bhagavad Gita › Chapter 8: Akshara Brahma Yoga › 8.6
Bhagavad Gita 8.6
Meaning and translation
यं यं वापि स्मरन्भावं त्यजत्यन्ते कलेवरम्।
तं तमेवैति कौन्तेय सदा तद्भावभावितः॥
yaṃ yaṃ vāpi smaranbhāvaṃ tyajatyante kalevaram
taṃ tamevaiti kaunteya sadā tadbhāvabhāvitaḥ
Also whichever form of deity he remembers when he finally leaves this body, to that he goes, O son of Kunti! having been used to ponder on it.
English translation by Kashinath Trimbak Telang (1882), public domain.
What this verse means
The mind tends to go where it has long been going. That is a reason to be gentle with your habits today, not a judgment on anyone's last moments.