Bhagavad Gita 5.20

Chapter 5: Renouncing action

न प्रहृष्येत्प्रियं प्राप्य नोद्विजेत्प्राप्य चाप्रियम् ।
स्थिरबुद्धिरसंमूढो ब्रह्मविद्ब्रह्मणि स्थितः ॥ २० ॥

With Reason firm, unperplexed, the knower of the Eternal established in the Eternal, neither rejoiceth on obtaining what is pleasant, nor sorroweth on obtaining what is unpleasant.

Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.