Bhagavad Gita 18.55

भक्त्या मामभिजानाति यावान्यश्चास्मि तत्त्वत: |
ततो माँ तत्त्वतो ज्ञात्वा विशते तदनन्तरम्

Translation

Only by loving devotion to Me does one come to know who I am in Truth. Then, having come to know Me, My devotee enters into full consciousness of Me.