Bhagavad Gita, Chapter 2, Verse 57

यः सर्वत्रानभिस्नेहस्तत्तत्प्राप्य शुभाशुभम् । नाभिनन्दति न द्वेष्टि तस्य प्रज्ञा प्रतिष्ठिता

yaḥ sarvatrānabhisnehastattatprāpya śubhāśubham | nābhinandati na dveṣṭi tasya prajñā pratiṣṭhitā

Translation

Whoso, without attachment anywhere, on meeting with anything good or bad, neither exults nor hates, his knowledge becomes steady.

— Alladi Mahadeva Sastri

Word meanings

yaḥ
who
sarvatra
everywhere
anabhisnehaḥ
un-attached
tat tat
that (whatever)
prāpya
having obtained
śubhāśubham
pleasant, and, unpleasant, and
na
not
abhinandati
rejoices
na
not
dveṣṭi
hates
tasya
of him
prajñā
the intelligence
pratiṣṭhitā
is established

Śaṅkarācārya's commentary

He who is everywhere free from attachment (anabhisneha), and who, on encountering anything pleasant or unpleasant, neither rejoices nor reviles — his knowledge (prajñā) becomes firmly established. Evenness in the face of opposite circumstances is the steady tenor of right knowledge.