The couple spent time in the UK on visitor visas over the years but after visiting in November 2012 they made an application to remain on human rights grounds which was refused by the Home Office.

A second application was also refused and they had been appealing against the decision, with the case due to be heard later this month.

The couple’s family and legal team previously spoke of the pair’s distress at the prospect of being separated from their family who all live in Edinburgh.

The couple also look after their severely autistic grandson who is non-verbal in order to help their daughter, an NHS nurse who is a single mother.

More than 127,800 people had signed a petition on change.org calling on the Home Office to allow the couple to stay in the UK and they have now been given leave to remain.

WATCH: I have raised the case of my constituents – Mozaffar Saberi (83) and Rezvan Habibimarand (73) – at the Council of Europe. The couple have lived in Edinburgh for 40 years and now face deportation thanks to the callous hostile environment policy of this Government. pic.twitter.com/MXH8SluGmo

A Home Office spokeswoman confirmed: “Following a review of the case, during which supplementary evidence was provided and considered, Mr Saberi and Mrs Habibimarand have been granted 30 months’ leave to remain.”

Writing on Facebook, their son Navid Saberi said: “You did it folks, you did it, thank you does not sound/feel enough but thank you. My parents will not be deported, just received the confirmation.

“Thank you for all your efforts, likes, shares and signatures.”

He continued: “I should thank John Vassiliou, our solicitor, and his team who stuck with us in the last six years and never gave up hope and kept us motivated.

“In addition, I would like to thank our MP Ian Murray who worked incredibly hard, raising the issue in the House of Commons and in the Council of Europe. He has been amazing.

“Many thanks also go to the Scottish Minister for Europe, Migration and International Development Ben Macpherson MSP and regional MSPs Alison Johnstone and Andy Wightman who all wrote letters on our behalf, and also to David Lammy MP and Diane Abbott MP for helping to raise the case’s profile on social media.”

This website and associated newspapers adhere to the Independent Press Standards Organisation's Editors' Code of Practice. If you have a complaint about the editorial content which relates to inaccuracy or intrusion, then please contact the editor here. If you are dissatisfied with the response provided you can contact IPSO here