Bhagavad Gita 6.7
जितात्मनः प्रशान्तस्य परमात्मा समाहितः ।
शीतोष्णसुखदुःखेषु तथा मानापमानयोः ॥ ७ ॥
The higher Self of him who is Self-controlled and peaceful is uniform in cold and heat, pleasure and pain, as well as in honour and dishonour.
Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.