Bhagavad Gita · 15.5
निर्मानमोहा जितसङ्गदोषाअध्यात्मनित्या विनिवृत्तकामाः।द्वन्द्वैर्विमुक्ताः सुखदुःखसंज्ञै-र्गच्छन्त्यमूढाः पदमव्ययं तत्॥
nirmāna-mohā jita-saṅga-doṣhā adhyātma-nityā vinivṛtta-kāmāḥ dvandvair vimuktāḥ sukha-duḥkha-saṁjñair gachchhanty amūḍhāḥ padam avyayaṁ tat
Those who are free from pride and delusion, who have conquered the defect of attachment, who are ever devoted to the self, whose desires have ceased, who are liberated from the pairs of opposites known as happiness and sorrow — such undeluded persons reach that imperishable abode.
— Bhagavad Gita 15.5
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)