sokabhyam

harṣa-śokābhyām — by happiness and distress; SB 10.36.39