Sharon Salzberg said this quote

The practice of sympathetic joy is rooted in inner development. It’s not a matter of learning techniques to “make friends and influence people.” Instead, we build the foundations of our own happiness. When our own cup is full, we more easily share it with others.