Bhagavad Gita 7.30
साधिभूताधिदैवं मां साधियज्ञं च ये विदुः। प्रयाणकालेऽपि च मां ते विदुर्युक्तचेतसः।।7.30।।
sādhibhūtādhidaivaṃ māṃ sādhiyajñaṃ ca ye viduḥ| prayāṇakāle'pi ca māṃ te viduryuktacetasaḥ||7.30||
sadhibhutadhidaivam mam sadhiyajnam ca ye viduh prayanakale'pi ca mam te viduryuktacetasah7.30
Meaning
Those who know Krishna as the governing principle of the material world, the celestials, and all sacrifices — even at the time of death, they know Him with a steadfast mind.
जो पुरुष अधिभूत और अधिदैव तथा अधियज्ञ के सहित मुझे जानते हैं, वे युक्तचित्त वाले पुरुष अन्तकाल में भी मुझे जानते हैं।
This is verse 30 of 30 in Chapter 7 (Jnana Vijnana Yoga) of the Bhagavad Gita.