Hi,
Income and gains arising outside the UK, in tax years where you are not resident in the UK, are not taxable in the UK.
If all of the funds being transferred meet this criteria, then there is no tax liability on transferring the funds to the UK. If any of funds being transferred arise in the tax year in which you return to the UK, then the income and, or gains arising in that tax year, may be subject to tax in the UK.
You can see guidance here:
https://www.gov.uk/government/publications/residence-domicile-and-remittance-basis-rules-uk-tax-liability
Thank you.