Sirach (Ecclesiasticus) 12:1

When thou wilt do good, know to whom thou doest it; so shalt thou be thanked for thy benefits.

Brenton's English Septuagint