Buddha said this quote

Even death is not to be feared by one who has lived wisely.