Bhagavad Gita 16.22
These are the gates that lead to darkness; if one avoids them, they will ensure their own welfare and eventually attain liberation.
एतैर्विमुक्तः कौन्तेय तमोद्वारैस्त्रिभिर्नरः।आचरत्यात्मनः श्रेयस्ततो याति परां गतिम्॥etairvimuktaḥ kaunteya tamodvāraistribhirnaraḥ|ācaratyātmanaḥ śreyastato yāti parāṃ gatim||
English translation (above): Shri Purohit Swami (1935), public domain. Sanskrit text via github.com/gita/gita (Unlicense).