Complete form P86 on your final return to UK and you are liable for tax on earnings from that day