If you outlive the duration of your policy term, the insurance coverage ends with no payout of any death benefits.
However, if you buy a return of premium term life insurance policy, and you are alive when the policy term expires, you would get back almost all of the premiums you had paid fir your life insurance policy over the years.
Return of premium term life plans charge a higher premium that regular term life insurance coverage.
Learn more about getting back money on term life insurance.