Bhagavad Gita 5.23
शक्नोतीहैव यः सोढुं प्राक्शरीरविमोक्षणात्।कामक्रोधोद्भवं वेगं स युक्तः स सुखी नरः॥
śaknotīhaiva yaḥ soḍhuṃ prākśarīravimokṣaṇāt |kā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.
He who, before leaving his body, learns to overcome the promptings of desire and anger, is a saint and is happy.
Our plain-language meaning of this verse is waiting for scholar review.