Bhagavad Gita 16.22

एतैर्विमुक्त: कौन्तेय तमोद्वारैस्त्रिभिर्नर: |
आचार्यात्मनः श्रेयस्ततो याति परां गतिम्

Translation

Those who are free from the three gates to darkness endeavor for the welfare of their soul, and thereby attain the supreme goal.