Bhagavad Gita · 2.72
एषा ब्राह्मी स्थितिः पार्थ नैनां प्राप्य विमुह्यति।स्थित्वास्यामन्तकालेऽपि ब्रह्मनिर्वाणमृच्छति॥
eṣhā brāhmī sthitiḥ pārtha naināṁ prāpya vimuhyati sthitvāsyām anta-kāle 'pi brahma-nirvāṇam ṛichchhati
O Partha, this is the divine state. Having attained it, one is not deluded. Being established in it even at the hour of death, one attains liberation in Brahman.
— Bhagavad Gita 2.72
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)