Hi,
You can find the criteria for paying Voluntary Contributions abroad by reading NI38 on the gov.uk website
Social Security abroad: NI38
If you believe you are eligible, you’ll then have to apply using the form CF83 ‘Application to pay National Insurance Contributions abroad’
Apply to pay voluntary National Insurance contributions when abroad (CF83)
You pay Class 2 for periods abroad where you had employment or self employment abroad, and immediately before you left the UK you were employed, self employed or registered unemployed.
You also need to meet at least one of the other criteria detailed in the NI38 guidance document to be considered eligible for Class 2 NICs. This is regardless of when you left the UK.
Thank you.