Bhagavad Gita Chapter 2.15
yam hi na vyathayanty ete
purusham purusharsabha
sama-duhkha-sukham dhiram
so ’mrtatvaya kalpate
Translation
O best among men [Arjuna], the person who is not disturbed by happiness and distress and is steady in both is certainly eligible for liberation.