Bhagavad Gita 14.25
मानापमानयोस्तुल्यस्तुल्यो मित्रारिपक्षयोः ।
सर्वारंभपरित्यागी गुणातीतः स उच्यते ॥ २५ ॥
The same in honour and ignominy, the same to friend and foe, abandoning all undertakings—he is said to have crossed over the qualities.
Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.