Chapter 12 · The Yoga of Devotion · Krishna said
Bhagavad Gita 12.18 — Same to friend and foe
समः शत्रौ च मित्रे च तथा मानापमानयोः। शीतोष्णसुखदुःखेषु समः सङ्गविवर्जितः ॥
samaḥ śatrau ca mitre ca tathā mānāpamānayoḥ | śītoṣṇasukhaduḥkheṣu samaḥ saṅgavivarjitaḥ ||
Meaning
One who is the same toward enemy and friend, in honour and insult, in cold and heat, in pleasure and pain, and is free from attachment —