Bhagavad Gita 18.49

Chapter 18: Freedom through renunciation

असक्तबुद्धिः सर्वत्र जितात्मा विगतस्पृहः ।
नैष्कर्म्यसिद्धिं परमां संन्यासेनाधिगच्छति ॥ ४९ ॥

He whose Reason is everywhere unattached, the self-subdued, dead to desires, he goeth by renunciation to the supreme perfection of freedom from obligation.

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