end (one's) days
To spend one's final days (in a particular way or place). I've already told my kids that I don’t want to end my days in a nursing home.
ˌend your ˈdays/ˈlife (in something)
spend the last part of your life in a particular state or place: He ended his days in poverty.