Sirach (Ecclesiasticus) 18:25

When thou hast enough, remember the time of hunger: and when thou art rich, think upon poverty and need.

Brenton's English Septuagint