generativity vs stagnation

What advice would you give to an older adult who wants to leave some kind of legacy for his/her family or future generations?