idiom
leave a legacy
Meaning
to create something that lasts and benefits others after you are gone
Example
He worked hard all his life to **leave a legacy** for his children.