

yaḥ sarvatrānabhisnehas tat tat prāpya śhubhāśhubham
nābhinandati na dveṣhṭi tasya prajñā pratiṣhṭhitā
One who remains unattached under all conditions, and is neither delighted by good fortune nor dejected by tribulation, he is a sage with perfect knowledge.
Word by Word Meaning:
yaḥ - who
sarvatra - in all conditions
anabhisnehaḥ - unattached
tat - that
prāpya - attaining
śhubha - good
aśhubham - evil
na - neither
abhinandati - delight in
na - nor
dveṣhṭi - dejected by
tasya - his
prajñā - knowledge
pratiṣhṭhitā - is fixed