“O Guḍākeśa, I am the ātman dwelling in the hearts of all beings. I am also the beginning and the middle of beings, and indeed their end.”
Going deeper
10.20 comes straight after Kṛṣṇa agrees to tell Arjuna of his glories, and it is the first thing he says of them: he is the Self dwelling in the hearts of all beings, and the beginning, the middle and the end of them. 13.17 speaks of the light of all lights, beyond darkness, and says it is knowledge, is to be attained through knowledge, and is present in the hearts of all. 15.15 returns to the first person. He is seated in the hearts of all, and from him come memory, knowledge and their removal. 18.61 moves to the third person: the Lord abides in the heart of every being, spinning them round as if mounted on a wheel. The next verse, 18.62, tells Arjuna to seek refuge in him alone. In the Sanskrit of 10.20 the word is āśaya, where the other verses use hṛd. All of this falls under Kṛṣṇa's speaker label, from chapter 10 to chapter 18. What the Gītā says about knowledge gathers more.