Exploring Yoga Sutras of Patanjali 1.33
1.33: maitri karuna mudita upeksanam sukha duhkha punya apunya visayanam bhavanatah citta prasadanam The mind will be undisturbed if you can cultivate the attitudes of friendliness towards the happy, compassion towards those in pain, delight [...]