यं यं वापि स्मरन्भावं त्यजत्यन्ते कलेवरम्।
तं तमेवैति कौन्तेय सदा तद्भावभावितः॥6॥
yaṃ yaṃ vāpi smaran bhāvaṃ tyajaty ante kalevaram taṃ tam evaiti kaunteya sadā tadbhāvabhāvitaḥ
O son of Kunti, whatever state of being a person remembers when leaving the body at the end, to that alone the person goes, having always been absorbed in it.
The last words of the verse are its key: 'sada tad-bhava-bhavitah', always absorbed in that state. At the last hour the mind recalls what it has dwelt on all through life. So the last moment is not prepared for in that moment. It is shaped by the thoughts and habits of every day.
yam yam: whatever; va api: indeed; smaran: remembering; bhavam: state of being; tyajati: leaves; ante: at the end; kalevaram: the body; tam tam: to that very one; eva: alone; eti: goes; kaunteya: O son of Kunti; sada: always; tad-bhava-bhavitah: absorbed in that state

