Bhagavad Gita 9.28

Chapter 9: The royal secret

शुभाशुभफलैरेवं मोक्ष्यसे कर्मबन्धनैः ।
संन्यासयोगयुक्तात्मा विमुक्तो मामुपैष्यसि ॥ २८ ॥

Thus shalt thou be liberated from the bonds of action, yielding good and evil fruits; thyself harmonised by the yoga of renunciation, thou shalt come unto Me when set free.

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