Bhagavad Gita: Chapter 2, Verse 57

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

yaḥ sarvatrānabhisnehas tat tat prāpya śubhāśubham
nābhinandati na dveṣṭi tasya prajñā pratiṣṭhitā 2.57

In the material world, one who is unaffected by whatever good or evil he may obtain, neither praising it nor despising it, is firmly fixed in perfect knowledge.