cast/throw your bread upon the waters - definition and synonyms

phrase
  1. to do something good that gives you no benefit now but may give you some benefit in the future
See also main entry: bread