Bhagavad Gita 6.18

Chapter 6: Meditation

यदा विनियतं चित्तमात्मन्येवावतिष्ठते ।
निःस्पृहः सर्वकामेभ्यो युक्त इत्युच्यते तदा ॥ १८ ॥

When his subdued thought is fixed on the Self, free from longing after all desirable things, then it is said, "he is harmonised."

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