Hi
If you are not resident in the UK in the tax year that you withdraw your pension, it will not be taxable in the UK. If you are resident in the UK, then it will depend on the tax treaty, if there is one, with the UK and the other country.
The tax treaties can be found at
Tax treaties.
Thank you