Sharon Salzberg said this quote

Buddhism has a term for the happiness we feel at someone else’s success or good fortune. Sympathetic joy, as it is known, invites us to celebrate for others.