Bhagavad Gita 2.15

Chapter 2: The yoga of knowledge

यं हि न व्यथयन्त्येते पुरुषं पुरुषर्षभ ।
समदुःखसुखं धीरं सोऽमृतत्वाय कल्पते ॥ १५ ॥

The man whom these torment not, O chief of men, balanced in pain and pleasure, steadfast, he is fitted for immortality.

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