When thou wilt do good, know to whom thou doest it; so shalt thou be thanked for thy benefits.
WEB
Sirach 12:1
If you do good, know to whom you do it, and your good deeds will have thanks.
Parallel Translations
When you will do good know to whom you do it; so shall you be thanked for your benefits.
When thou wilt do good know to whom thou doest it; so shalt thou be thanked for thy benefits.