Bhagavad Gita · 7.30
साधिभूताधिदैवं मां साधियज्ञं च ये विदुः।प्रयाणकालेऽपि च मां ते विदुर्युक्तचेतसः॥
sādhibhūtādhidaivaṁ māṁ sādhiyajñaṁ cha ye viduḥ prayāṇa-kāle 'pi cha māṁ te vidur yukta-chetasaḥ
Those who know Me as the governing principle of the material world, of the gods, and of all sacrifices — they, with minds united in Me, know Me even at the time of death.
— Bhagavad Gita 7.30
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)