Bhagavad Gita 18.50
Chapter 18: Freedom through renunciation
सिद्धिं प्राप्तो यथा ब्रह्म तथाऽऽप्नोति निबोध मे ।
समासेनैव कौन्तेय निष्ठा ज्ञानस्य या परा ॥ ५० ॥
How he who hath attained perfection obtaineth the Eternal, that highest state of wisdom, learn thou from Me only succinctly, O Kaunteya.
Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.