Bhagavad Gita 5.25

लभन्ते ब्रह्मनिर्वाणमृषयः क्षीणकल्मषाः।छिन्नद्वैधा यतात्मानः सर्वभूतहिते रताः ॥५.२५॥

labhante brahmanirvāṇamṛṣayaḥ kṣīṇakalmaṣāḥchinnadvaidhā yatātmānaḥ sarvabhūtahite ratāḥ

The sages obtain absolute freedom or Moksha when their sins have been destroyed, their dualities have been torn asunder, they are self-controlled, and they are intent on the welfare of all beings.

गीता