Hi Ka Tang Elson,
You would need to look at the guidance on statutory residence and take the statutory residence tests, to determine whether you are resident for tax purposes in the UK for the whole tax year 2022 to 2023 or whther you are not tax resident for the whole tax year.
You would then need to consider split year treatment and whether it applies or not.
There are a total of 3 outcomes.
1 - Tax resident for the whole tax year and split year treatment applies (a tax return is required to claim split year treatment
2 - Tax resident for the whole tax year and split year treatment does not apply (a tax return is required to declare world wide income
3 - Not tax resident for the whole tax year (a tax return is required if certain Self Assessment criteria is met:
Check if you need to send a Self Assessment tax return
Thank you.