A person who abandons all thought and meditates upon the Supreme Truth at the hour of death reaches the Supreme Truth.
He who departs from the body thinking of Supreme Truth enters the imperishable Brahman.
Therefore at all times think of Supreme Truth and do your Karma. When the mind and understanding are set on Brahman, we go to That.
He whose mind does not wander and is constantly meditating on the Supreme Truth attains the Supreme Truth.
Bhagavad Gita Chapter 8