Lock your number: T-Mobile Port Out Protection
What to do
Only if your phone service is with T-Mobile; otherwise skip this one. In your account or the T-Life app, add the free Port Out Protection service to each line separately. SIM Protection is a separate switch under your profile. Turn it off before you move your number to another company.
What it asks for
Your account sign-in.
Once it is on
Check the page shows it as on before you leave. Look again in 1 year.