Bhagavad Gita 5.21

Chapter 5: Renouncing action

बाह्यस्पर्शेष्वसक्तात्मा विन्दत्यात्मनि यत्सुखम् ।
स ब्रह्मयोगयुक्तात्मा सुखमक्षयमश्नुते ॥ २१ ॥

He, whose self is unattached to external contacts and findeth joy in the Self, having the self harmonised with the Eternal by yoga, enjoys imperishable bliss.

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