Bhagavad Gita, Chapter 15, Verse 15

सर्वस्य चाहं हृदि सन्निविष्टो मत्तः स्मृतिर्ज्ञानमपोहनञ्च । वेदैश्च सर्वैरहमेव वेद्यो वेदान्तकृद्वेदविदेव चाहम्

sarvasya cāhaṃ hṛdi sanniviṣṭo mattaḥ smṛtirjñānamapohanañca | vedaiśca sarvairahameva vedyo vedāntakṛdvedavideva cāham

Translation

And I am seated in the hearts of all: from Me are memory, knowledge, as well as their loss; it is I who am to be known by all the Vedas, I am indeed the author of the Vedānta as well as the knower of the Vedas.

— Alladi Mahadeva Sastri

Word meanings

sarvasya
of all
ca
and
aham
I
hṛdi
in the heart
sanniviṣṭaḥ
seated
mattaḥ
from me
smṛtiḥ
memory
jñānam
wisdom
apohanam
absence
ca
and
vedaiḥ
by the Vedas
ca
and
sarvaiḥ
(by) all
aham
I
eva
even
vedyaḥ
to be known
vedāntakṛt
Vedānta maker
vedavit
Veda-knower
eva
even
ca
and
aham
I

Śaṅkarācārya's commentary

I dwell in the hearts (buddhi) of all sentient beings as their Self. Wherefore from Me, the Self of all sentient beings, are memory, knowledge, as well as their loss. Just as knowledge and memory occur in righteous persons as a result of their good deeds (puṇya-karman), so, as a result of their sins, loss of memory and knowledge occurs in the sinful. I, the Supreme Self, am to be known in all the Vedas. It is I who cause the Teaching of the Vedānta (Upaniṣads) to be handed down in regular succession, and It is I who know the Vedic Teaching.