It's a good question, and something you should consider before you buy a term policy.
Traditional term life insurance plans are much cheaper than permanent life insurance, because many people people do outlive their coverage.
However, if you are alive when your term policy expires, there is no payout of benefits and no premium return.
You don't get any money back, unless you purchased a Return of Premium term life policy, which charges higher premiums than traditional term insurance.
Learn more about getting money back on term life insurance.