Bhagavad-gītā 16.22
BG 16.22
Open the full passageएतैर्विमुक्तः कौन्तेय तमोद्वारैस्त्रिभिर्नरः । आचरत्यात्मनः श्रेयस्ततो याति परां गतिम् ॥२२॥
Sanskrit
etair vimuktaḥ kaunteya tamo-dvārais tribhir naraḥ ācaraty ātmanaḥ śreyas tato yāti parāṁ gatim
Translation
The man who has escaped these three gates of hell, O son of Kuntī, performs acts conducive to self-realization and thus gradually attains the supreme destination.