Cornelius’ family have been calling for government action for years and Miliband has previously raised the case several times with the UAE’s deputy prime minister and foreign minister, Sheikh Abdullah bin Zayed Al Nayhan.

Cornelius, who was a property dealer with interests in the UAE, was arrested and detained following a series of complicated business dealings with the Dubai Islamic Bank.

Nearing the end of his 10-year sentence, Mr Cornelius had been due to be released in 2018, but his sentence was increased by 20 years, reportedly due to an Emirati law passed after his arrest.

Sir Bill Browder, head of the Magnitsky campaign, said Mr Cornelius’s case was a “disgraceful miscarriage of justice” and that the UAE had “deprived him and his family of nearly two decades together”.

Cornelius landed at Heathrow on Saturday evening and was reunited with his family, Sir Bill said.

He added: “Ryan is finally free and will be able to spend Christmas with his family for the first time in 18 years. That is something worth celebrating, but we must never forget the injustice that brought us here or the need to hold those responsible to account.”

A Foreign, Commonwealth and Development Office spokesperson said: “We are pleased that Ryan Cornelius and Charles Ridley have today returned to the UK, as stated by their families.

“The Foreign Secretary has personally prioritised this case and worked closely with the UK envoy for complex consular detentions, Alistair Burt.”