Bhagavad Gita · Chapter 16: The Divine and the Demonic Natures
Bhagavad Gita 16.22
एतैर्विमुक्तः कौन्तेय तमोद्वारैस्त्रिभिर्नरः ।
आचरत्यात्मनः श्रेयस्ततो याति परां गतिम् ॥
etairvimuktaḥ kaunteya tamodvāraistribhirnaraḥ | ācaratyātmanaḥ śreyastato yāti parāṃ gatim ||
A person who is freed from these three gates of darkness, Arjuna, does what is good for the self, and so reaches the highest goal.
Modern context
Once free of these three gates of darkness, a person naturally begins to do what is truly good for them. This is hopeful. One does not have to force goodness. Remove desire, anger and greed, and the natural goodness of the self begins to shine through. Much of spiritual life is less about adding virtues than about removing what hides them.