情けは人のためならず。

English Translation

He who gives to another bestows on himself.

I don’t really understand what’s going on with this sentence.

Literally: Kindness does not become the benefit of (other) people.

It is a proverb arguing that kindness is always self-serving.