Hi Kberd,
You will need to consider your residency status by applying the tests at RDR3 to your circumstances. (
RDR3 Statutory Residence Test)
If you are tax resident in the UK for the full tax year, you need to consider if split year treatment can apply.
If it does, you declare this on SA109 and only show your foreign self employment earnings, earned while resident in the UK.
This would be declared on SA103 and as tax was deducted, also on SA106, this will allow you to claim a tax credit.
Thank you.