Bhagavad Gita 2.72

एषा ब्राह्मी स्थितः पार्थ नैनं प्राप्य विमुह्यति |
स्थितवास्यमन्तकालेऽपि ब्रह्मनिर्वाणमृच्छति

Translation

O Parth, such is the state of an enlightened soul that having attained it, one is never again deluded. Being established in this consciousness even at the hour of death, one is liberated from the cycle of life and death and reaches the Supreme Abode of God.