You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA, Switzerland and bilateral Social Security agreement countries, and you meet the following 3 conditions:
your employer has a place of business in the UK
you’re ordinarily resident in the UK
you were living in the UK immediately before starting work abroad