Bhagavad Gita, Chapter 12, Verse 18

समः शत्रौ च मित्रे च तथा मानापमानयोः । शीतोष्णसुखदुःखेषु समः सङ्गविवर्जितः

samaḥ śatrau ca mitre ca tathā mānāpamānayoḥ | śītoṣṇasukhaduḥkheṣu samaḥ saṅgavivarjitaḥ

Translation

He who is the same to foe and friend, and also in honor and dishonor: who is the same in cold and heat, in pleasure and pain: who is free from attachment: to whom censure and praise are equal: who is silent, content with anything, homeless, steady-minded, full of devotion: that man is dear to Me.

— Alladi Mahadeva Sastri

Word meanings

samaḥ
equal
śatrau
(to) the enemy
ca
and
mitre
(to) the friend
ca
and
tathā
also
mānāpamānayoḥ
in fame, and, in ignominy, and
śītoṣṇasukhaduḥkheṣu
in cold, and, in heat, and, in pleasure, and, in pain, and
samaḥ
equal
saṅgavivarjitaḥ
from attachment, freed

Śaṅkarācārya's commentary

He has no attachment for objects of any kind. He is content with the bare means of bodily sustenance. It is said in the Mahābhārata: "Who is glad with anything, who is not at any food, who lies down anywhere — him the Gods call a brāhmaṇa." (Śānti-parva, Mokṣa-Dharma, 245.12).