A term life insurance plan is temporary coverage life insurance for a set number of years.
If you pass away during the duration of your policy, your death benefit is paid out to the person or persons named as beneficiary to your life insurance policy.
If you are alive when your term of coverage ends, there is no death benefit paid out, your life insurance coverage expires.
However, if you have a return of premium term life insurance policy and you outlive the term (duration) of your term policy, you will get back most of the premiums you paid for your term life insurance coverage.
Keep in mind, premiums are higher for a return of premium policy compared to a regular term life policy. You are betting that you will survive for the entire term, and get your money back.