Bhagavad Gita 5.23

शक्नोतीहैव यः सोढुं प्राक्शरीरविमोक्षणात्।कामक्रोधोद्भवं वेगं स युक्तः स सुखी नरः ॥५.२३॥

śaknotīhaiva yaḥ soḍhuṃ prākśarīravimokṣaṇātkāmakrodhodbhavaṃ vegaṃ sa yuktaḥ sa sukhī naraḥ

He who is able, while still here in this world, to withstand the impulse born out of desire and anger before the liberation from the body, he is a Yogi, and he is a happy man.

गीता