Ms Campbell said she was overjoyed that her daughter would be coming back to Scotland but added that Misbah would be "confused and scared".

She told BBC Scotland: "My immediate thoughts are a big hug - hug her and breathe her in.

"I would love to talk to her on the phone to reassure her that the case is still going on over here and she gets to say her point of view.

"I think Molly is going to be quite scared and confused. I just want to tell her that it is all going to be okay - it's all going to work out."

The lawyer who represented Ms Campbell in court said she was eagerly awaiting her daughter's return.

Naheeda Mahboob Elahi said: "I spoke to Ms Campbell earlier and she is very happy and excited, very grateful.

"This was not a decision about custody. It was a decision on whether Mr Rana had acted improperly by violating the court order made at the Court of Session in Scotland in June last year."

The lawyer added: "Misbah should get a chance at the Court of Session to say who she wants to live with."

'Really pleased'

Mr Rana said his daughter was "devastated" by the decision.

Speaking outside the court in Lahore, he said he would be seeking legal advice about lodging an appeal to the supreme court.

Mr Rana said: "I was very surprised and shocked by this decision.

"Misbah is very devastated, she was crying, she is very upset.

"She doesn't want to go back to Scotland, she wants to stay here in Pakistan."

Shona Smith, a partner at Balfour and Manson Solicitors which is representing Ms Campbell in the UK, welcomed the ruling.

Ms Smith said it was in line with an agreement between the UK and Pakistan on how such cases should be handled.

She said: "We are pleased to note that the Pakistan court have now invoked the protocol ensuring Misbah is returned to the jurisdiction of the Scottish Courts to enable them to consider the merits of the case."

Misbah and her mother Louise before the child left for Pakistan

The youngster left her mother's home in Stornoway and travelled to Pakistan with her 18-year-old sister Tahmina three months ago, initially sparking a police search.

Ms Campbell made an emotional appeal for Misbah's return but the youngster stated publicly that she wished to live with her father and wanted to be known as Misbah.

Her mother lodged a petition in Pakistan claiming the youngster had been taken there illegally by her former husband and eldest daughter.

Ms Campbell did not attend the legal proceedings in Lahore.

Her lawyer said she had not travelled to Pakistan for health and financial reasons.

A proposed compromise based on a shared custody arrangement collapsed in court after Mr Rana's lawyer insisted that Misbah should only be allowed to see her mother in Pakistan and not be allowed to return to Scotland for at least two years.