Bhagavad Gita 5.23
शक्नोतीहैव यः सोढुं प्राक्शरीरविमोक्षणात्। कामक्रोधोद्भवं वेगं स युक्तः स सुखी नरः।।5.23।।
śaknotīhaiva yaḥ soḍhuṃ prākśarīravimokṣaṇāt| kāmakrodhodbhavaṃ vegaṃ sa yuktaḥ sa sukhī naraḥ||5.23||
shaknotihaiva yah sodhum prakshariravimokshanat kamakrodhodbhavam vegam sa yuktah sa sukhi narah5.23
Meaning
One who is able to withstand the impulses of desire and anger before departing from the body is a true yogi and a truly happy person. Mastery over these forces is the measure of spiritual progress.
जो मनुष्य इसी लोक में शरीर त्यागने के पूर्व ही काम और क्रोध से उत्पन्न हुए वेग को सहन करने में समर्थ है, वह योगी (युक्त) और सुखी मनुष्य है।
This is verse 23 of 29 in Chapter 5 (Karma Sanyasa Yoga) of the Bhagavad Gita.