Bhagavad Gita 10.20
अहमात्मा गुडाकेश सर्वभूताशयस्थितः ।
अहमादिश्च मध्यं च भूतानामन्त एव च ॥ २० ॥
I, O Gudakesha, am the Self, seated in the heart of all beings; I am the beginning, the middle, and also the end of all beings.
Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.