Bhagavad Gita 6.32
आत्मौपम्येन सर्वत्र समं पश्यति योऽर्जुन।सुखं वा यदि वा दुःखं सः योगी परमो मतः॥
ātmaupamyena sarvatra samaṃ paśyati yo'rjuna |sukhaṃ vā yadi vā duḥkhaṃ saḥ yogī paramo mataḥ ||
He who, through the likeness of the Self, O Arjuna, sees reality everywhere, be it pleasure or pain, is regarded as the highest Yogi.
O Arjuna! He is the perfect saint who, having been taught by the likeness within himself, sees the same Self everywhere, regardless of whether the outer form be pleasurable or painful.
Our plain-language meaning of this verse is waiting for scholar review.