Chapter 16 · Divine and Demonic Natures · Krishna said
Bhagavad Gita 16.22 — Freed from the three
एतैर्विमुक्तः कौन्तेय तमोद्वारैस्त्रिभिर्नरः। आचरत्यात्मनः श्रेयस्ततो याति परां गतिम् ॥
etairvimuktaḥ kaunteya tamodvāraistribhirnaraḥ | ācaratyātmanaḥ śreyastato yāti parāṃ gatim ||
Meaning
O Arjuna, one who is free from these three gates of darkness does what is truly good for the soul and then reaches the highest goal.