Bhagavad Gita: Chapter 5, Verse 19

इहैव तैर्जित: सर्गो येषां साम्ये स्थितं मन: |
निर्दोषं हि समं ब्रह्म तस्माद् ब्रह्मणि ते स्थिता: || 19||

ihaiva tair jitaḥ sargo yeṣhāṁ sāmye sthitaṁ manaḥ
nirdoṣhaṁ hi samaṁ brahma tasmād brahmaṇi te sthitāḥ

iha evain this very life; taiḥby them; jitaḥconquer; sargaḥthe creation; yeṣhāmwhose; sāmyein equanimity; sthitamsituated; manaḥmind; nirdoṣhamflawless; hicertainly; samamin equality; brahmaGod; tasmāttherefore; brahmaṇiin the Absolute Truth; tethey; sthitāḥare seated

ihaiva tair jitah sargo yesham samye sthitam manah
nirdosham hi samam brahma tasmad brahmani te sthitah

Translation

BG 5.19: Those whose minds are established in equality of vision conquer the cycle of birth and death in this very life. They possess the flawless qualities of God, and are therefore seated in the Absolute Truth.

Commentary

Sri Krishna uses the word sāmye to mean one possessed of an equal vision toward all living beings, as explained in the previous verse.  Further, equality in vision also means to rise beyond likes and dislikes, happiness and misery, pleasure and pain.  Shree Krishna says that those who are able to do so transcend the samsara of repeated birth and death.

So long as we think of ourselves as the body, we cannot attain this equality of vision because we will experience continued desires and aversions for bodily pleasures and discomforts.  Saints rise above bodily consciousness and absorb their minds in God, giving up all worldly attachments.  The Ramayan states:

sevahiṅ lakhanu sīya raghubīrahi, jimi abibekī puruṣha sarīrahi.

“Lakshman served Lord Ram and Sita, just as an ignorant person serves his body.” 

When one’s mind is situated in this divine consciousness, attachment to bodily pleasures and pains get transcended, and one reaches a state of equanimity.  This equipoise that comes through the sacrifice of selfish bodily desires makes one godlike in demeanor.  The Mahabharat states: yo na kāmayate kiñchit brahma bhūyāya kalpate  “One who gives up desires becomes like God.”