Islamabad: Ousted Pakistan prime minister Nawaz Sharif, his daughter and son-in-law were released from prison on Wednesday, hours after a top court suspended their sentences in a major corruption case that jeopardised their political career.

In a relief to the still-grieving Sharif family, a two-judge bench of the Islamabad High Court suspended the jail sentences of the embattled former prime minister Sharif, his daughter Maryam and son-in-law Captain (retired) Muhammad Safdar in the Avenfield corruption case and ordered their release.

Sharif's younger brother and President of his Pakistan Muslim League-Nawaz (PML-N) Shehbaz Sharif and other party leaders meet the former premier at the high-security Adiala Prison before he was released, Geo News reported.

File image of former Pakistan prime minister Nawaz Sharif. Reuters

Shehbaz, along with party leaders, met Nawaz in the office of the jail superintendent. During the meeting, Nawaz said, "I have not done anything wrong; my conscience is satisfied."

He told party leaders that the almighty Allah favours what is right and just. "Allah will grant justice to me," he said.

The former three-time premier, his daughter and son-in-law were taken to the Noor Khan Airbase amid tight security. They will leave for Lahore via a special plane, the report said.

A large number of party workers have also been accompanying the PML-N supremo to the airbase. Jubilant workers have been chanting slogans and showering the ex-premier's vehicle with rose petals.

A two-judge bench of the Islamabad High Court heard the petitions filed by Sharif, Maryam and Safdar challenging their conviction related to the purchase of four luxury flats in London through corrupt practices. "The instant writ petition is allowed and sentence awarded to the petitioners by the accountability court shall remain suspended till the final adjudication of the appeal filed by the petitioner," reads the judgment.

A date will now be fixed for the hearing of the appeals. The accountability court judge Mohammad Bashir had sentenced the trio on 6 July.

Sharif, 68, Maryam, 44, and Safdar, 54, were sentenced to 10 years, seven years and one year, respectively, in prison and fined in the Avenfield properties case.

The accused were also disqualified from contesting elections or holding public office for a period of 10 years after release. Both Maryam and Safdar are politicians. The accountability court verdict had ruined their political career.

Following the accountability court's judgment, the Sharifs filed separate petitions requesting the high court to suspend sentences and set aside the verdict.

The ruling by the Islamabad High Court comes just a week after Sharif's wife, Kulsoom Nawaz, died from cancer in London. The trio were briefly allowed out of the high-security Adiala Jail on parole to attend her funeral. They returned to jail on Monday.

The two-judge bench also ordered the release of the former premier, his daughter and son-in-law from Adiala Jail in Rawalpindi. The three were also directed to submit bail bonds worth Rs 5,00,000.

Pakistani media reported that the verdict would remain a temporary relief for the former prime minister and his family members until the court gives the final decision on their application seeking suspension of their conviction in the Avenfield case.

Apart from the Avenfield case, the Sharifs face jail terms if they are convicted in two more corruption cases related to Al-Azizia and Flagship cases. The cases against the family stemmed from Panama Papers leak in April 2016.

In a blow to Pakistan's anti-corruption watchdog, the Islamabad High Court also dismissed the National Accountability Bureau's (NAB) request to first announce a judgment on the maintainability of the pleas. The bench also imposed a fine on the NAB lawyers earlier for using delaying tactics.

The NAB was also pulled up by the Supreme Court on Monday when it rejected its petition challenging the high court's decision to hear the Sharifs' petitions against the Avenfield verdict.

Chief Justice Saqib Nisar called the NAB petition frivolous and imposed a Rs 20,000 fine on the anti-corruption watchdog.

Nawaz resigned as Pakistan prime minister last year after the Supreme Court disqualified him from holding public office and ruled that graft cases be filed against the beleaguered leader and his children in the Panama Papers scandal.

The Avenfield case was among the three corruption cases filed against the three-time former premier and his children by the NAB on the Supreme Court's orders in the Panama Papers case which disqualified Sharif. Nawaz has denied any wrongdoing and says the charges are political motivated.

His supporters believe the real reason he was convicted was because he had fallen out with the country's powerful army.

After the verdict, Leader of the Opposition and Sharif's younger brother, Shahbaz, tweeted a Quranic verse to express gratitude on suspension of the sentences. "Truth has come, and falsehood has departed. Indeed is falsehood, (by nature), ever bound to depart," he tweeted.