不以物喜，不以己悲

Etymology
From Yueyang Lou Ji by :

Idiom

 * 1) to not be emotionally affected by external objects and one's experiences

Usage notes
It is equivalent to.