Neither.
Life insurance is not a savings account. When you "take money out", what you're doing, is taking out the cash value that has built up over time inside the policy, not the death benefit. The cash value is a small amount of what you've paid into the policy, about 10%.
Also, term life insurance does not have any cash value, only permanent life insurance plans build cash value over time inside the policy.
So, if you buy a permanent life insurance policy, and pay $5,000 a year into it, after five years, you can "borrow" maybe $2,000 out of it. The death benefit is reduced by that amount (and you have to keep paying your premiums), and you pay interest to the insurance company on the amount of the loan you take from your life insurance policy.
Term life insurance pays out only if the person dies. If the person stays alive for the entire term, then they are not able to receive any money when the term expires.
However, return premium term life insurance, which costs more than regular term life insurance, pays back a large portion of your premiums if you outlive the term of your term life insurance policy.