Bhagavad Gita 18.55

Chapter 18: Freedom through renunciation

भक्त्या मामभिजानाति यावान्यश्चास्मि तत्त्वतः ।
ततो मां तत्त्वतो ज्ञात्वा विशते तदनन्तरम् ॥ ५५ ॥

By devotion he knoweth Me in essence, who and what I am; having thus known Me in essence he forthwith entereth into the Supreme.

Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.