The Court reserved its judgment on 23 February 2017.[4] The case has been described as the most publicized in Pakistan's history, as well as a "defining moment" for the country.[5][6] On 20 April 2017, the court announced the formation of a Joint Investigation Team (JIT) to probe the Sharif family's involvement in corruption as stated in the Panama leaks.[7][8]

In a televised address to the National Assembly of Pakistan on 16 May 2016, Sharif suggested forming a joint committee to draft the terms of reference for establishing a judicial commission. He said he was not afraid of accountability, while criticizing opposition figures: "Today, people living in bungalows and commuting in helicopters are accusing me of misconduct. Can they explain before the nation as to how they earned all this money and how much tax they paid?"[18] In his speech, Sharif said he would clear the air about the London flats, but did not return to the subject.[18] He reiterated that the flats had been purchased with money earned from the sale of Jeddah Steel Mills, which had belonged to his father. Later, Sharif omitted any reference to his family's business connections with the Qatari royal family during his 16 May speech, inviting allegations of contradictory statements.[19]

The court's initial five-member bench for hearing the case was headed by Chief Justice Jamali and comprised Justices Asif Saeed Khan Khosa, Amir Hani Muslim, Sh. Azmat Saeed, and Ijaz-ul-Ahsan. The hearings began 1 November 2016. PTI leader Imran Khan was represented by Bokhari and Hamid Khan. Legal counsel for Sharif and his children were senior lawyers Salman Aslam Butt and Akram Sheikh. The court also accepted additional petitions filed by other opposition figures, including Jamaat-e-Islami leader Siraj-ul-Haq and Sheikh Rashid Ahmad. In their reply, Sharif lawyers Butt and Shoaib Rashid informed the bench that though they owned properties abroad, Hassan and Hussain Nawaz had been running a business lawfully for decades, that Maryam Nawaz was not dependent on her father, nor was she the beneficial owner of the cited offshore companies, Nielsen and Nescoll, but a trustee.[21] Justice Khosa required counsel to satisfy the bench that the money had been lawfully earned and transferred.[21] The court also questioned the quality of PTI's evidence, with Justice Saeed remarking that newspaper clippings were only good for "selling pakoras" the day after publication.[22]

(My father Jassim) had longstanding business relations with (Sharif's father) Mian Mohammad Sharif which were coordinated through my eldest brother... Mian Sharif expressed his desire to invest a certain amount of money in the real estate business of Al Thani family in Qatar. I understood at that time, that an aggregate sum of around Dirhams 12 million was contributed by Mian Sharif, originating from the sale of business in Dubai (for four flats: 16, 16A, 17 and 17A Avenfield House, Park Lane, London, registered under the ownership of two offshore companies, while their bearer share certificates were kept in Qatar). These were purchased from the proceeds of the real estate business... I can recall that during his lifetime, Mian Sharif wished that the beneficiary of his investment and returns in the real estate business [should be] his grandson Hussain Nawaz Sharif.[23]

Justice Khosa observed that the document had "completely changed the public stand of the Prime Minister."[23] When asked why Sharif had not mentioned the Qatari letter in his 16 May speech, Butt replied, 'Those were not legal testimonials, rather mere political statements."[24] Expressing inability to furnish a "40-year-old" money trail, Butt explained that business families at the time conducted transactions over parchis, slips of paper.[25] A second letter written by Al Thani was produced on 26 January 2017, clarifying that the "investment was made by way of provision of cash which was common practice in the Gulf region at the time of the investment. It was also, given the longstanding relationship between my father and Mr. Sharif, a customary way for them to do business between themselves."[26]

Following the superannuation and retirement of Chief Justice Jamali in December, a new bench headed by Justice Khosa was formed to hear the case afresh. The bench retained justices Sh. Azmat Saeed and Ijaz-ul-Ahsan, and included justices Ejaz Afzal Khan and Gulzar Ahmed. The Sharif family also reshuffled its legal team: Butt and Sheikh were replaced with Makhdoom Ali Khan, Shahid Hamid, and Salman Akram Raja. The move came following widespread criticism over the team's handling of the case, and the Qatari letter's introduction.[27] On the petitioners' side, lead counsel Hamid Khan too recused himself from arguing the case, claiming, "I can contest a case in the court, but am unable to indulge in a media war" after media reports surfaced that the party was unsatisfied with his performance.[28] Fresh hearings resumed on 4 January 2017 with the reconstituted bench, new defence counsel, and a truncated petitioner's side.[29]

The PTI's case was relitigated entirely by Bokhari, alongside Maleeka Bokhari and Akbar Hussain. Bokhari referred to interviews with different members of the Sharif family, highlighting that each gave differing versions of the ownership structure of the London properties.[30] He argued that the Sharif family had failed to present any record regarding banking transactions, or refer to trust deeds or the Qatari connection earlier.[31] He maintained that Maryam Nawaz had declared her taxable income as zero in tax returns, and remained a dependent on her father. He added that Hussain Nawaz had given Rs. 810 million to his father, without any of it being taxed.[32]

Sharif's lawyer Makhdoom Ali Khan, appeared as lead counsel, assisted by Saad Hashmi and Sarmad Hani. Makhdoom quoted the court's own decision on Article 62 (1)F of the Constitution, under which the petitioners sought Sharif's disqualification, as "a nightmare of interpretations and feast of obscurities."[34] Makhdoom distinguished the case from that of Yusuf Raza Gilani, who was disqualified as prime minister in 2012 for contempt of court. Dismissing the Gilani precedent, Makhdoom argued, “My Lords you need to look at the background and understand the context of this judgment.”[34] Regarding Maryam Nawaz's dependence status, Makdhoom maintained she was listed as the prime minister's dependent on tax forms because there was no other column on the sheet.[35]

To illustrate that it was not difficult to transport 12 million dirhams in cash, Hassan and Hussain Nawaz's counsel Salman Akram Raja placed the novels War and Peace and The Brothers Karamazov on top of each other, demonstrating that the thickness of both books, amounting to over 3,000 pages, would be the same as two million dirhams in cash.[36]

Throughout the case, the court questioned the non-functioning of state institutions in pursuing the Panama affair. Muhammad Irshad, Chairman of the Federal Board of Revenue informed the court that notices had been issued to 343 individuals following the Panama Papers leaks, and that Hassan, Hussain and Maryam Nawaz had responded to the notices. FBR lawyer Mohammad Waqar Rana said that no immediate steps had been taken in pursuance of the Panama scandal, arguing that separate laws and institutions were available for money laundering cases. "So in other words, what you are saying is that the FBR did not take any steps regarding money laundering?" Justice Gulzar observed. The FBR failed to satisfy the court over actions taken. “Thank you very much for not assisting the court,” Justice Khosa admonished the FBR side.[37]

The NAB (National Accountability Bureau) was represented by Chairman Qamar Zaman Chaudhry and Prosecutor General Waqas Qadeer Dar. During their submissions, the case shifted focus to the Hudaibiya criminal reference filed by NAB earlier. The reference was based on a confession by Ishaq Dar in 2000, admitting to laundering $14.86 million for the Sharif family.[38] Dar had been placed under house arrest at the time by the military regime of Pervez Musharraf, and maintained the confession had been acquired under duress. The case was quashed by the Lahore High Court in 2014, when Dar was finance minister. "There are reservations regarding NAB's failure to register an appeal," the bench remarked. "When a criminal gets bail in a case of petty theft, NAB registers an appeal. This is a case worth millions and no appeal was registered," Justice Khosa observed.[38] Chaudhry restated his decision not to register an appeal. Justice Saeed warned the NAB team to "be prepared to face serious consequences."[39]

The Attorney-General for Pakistan, Ashtar Ausaf Ali, was put on notice to assist the Court on 22 February 2017. Ausaf, with Asad Rahim Khan and Salaar Shahzaib Khan, submitted that anyone could file an appeal against the Lahore High Court’s decision in the Hudaibiya reference, let alone NAB. Justice Saeed commented that NAB had "died in front of us yesterday".[40] Ausaf further submitted that the prime minister did not have immunity in Code of Criminal Procedure cases under the Constitution. Ausaf was warned "not to become a party to the case" but assist the court.[41]

Following Bokhari's rebuttal to the defence case, the petitioners appeared before the bench on 23 February 2017, including Imran Khan, Siraj-ul-Haq, and Sheikh Rashid Ahmad. The Court reserved its judgment on that day.[42]

The verdict in the case was announced at 2:00 p.m. PST on 20 April 2017. The Supreme Court in a 3–2 decision ruled that there was insufficient evidence to order Sharif's removal from office, but ordered further investigation into corruption allegations. The court ordered the formation of a Joint Investigation Team (JIT) under a three-member special bench, which was later known as the JIT implementation bench. The two dissenting judges on the bench, Justice Asif Saeed Khosa and Justice Gulzar Ahmed, were of the opinion that Sharif had not been honest to the nation and should be disqualified from office.[43]

“The secret of a great success for which you are at a loss to account is a crime that has never been found out, because it was properly executed”

The Panama Case JIT had powers to investigate all respondents and related parties, including the prime minister, and was ordered to complete its investigation within 60 days and present its findings to the Supreme Court every 15 days.[45]

The detailed, 540-page verdict in the case was released on April 20, 2017. It was primarily authored by Justice Ejaz Afzal Khan and was noted for its harsh criticism of state investigative institutions, NAB and the FIA, as well as the government for their handling of the Panama Papers leaks.[46] It chastised the defendants for not being 'completely honest with the court'.[47]

Under the ruling of the Supreme Court a three-member special implementation bench supervised the JIT, headed by Justice Ejaz Afzal Khan and including Justice Sheikh Azmat Saeed and Justice Ijazul Ahsan. The JIT was formally constituted by the Supreme Court's implementation bench on 6 May 2017. It comprised six members, with the head from FIA:[48][49]

The JIT members were given the authority to engage and associate local and/or foreign experts to facilitate the investigation of Sharif family's offshore assets. The team also received all powers granted by laws relating to investigation, including those available in the Code of Criminal Procedure, 1898, National Accountability Bureau Ordinance, 1999 and the Federal Investigation Agency Act, 1975. The directive also stated that the JIT was acting at the direction of the Supreme Court, and all executive authorities in Pakistan must assist and cooperate with the team.[48]

The JIT headquarters was in the Federal Judicial Academy, Islamabad, with a working budget of Rs. 20 million. The team was required to submit reports to the Supreme Court fortnightly and to complete its investigations within 60 days of formation.[48]

Despite controversies, On 10 July 2017, JIT submitted a 275-page report[52][51] in the apex court. The report requested NAB to file a reference against Sharif, his daughter Maryam, and his sons under section 9 of National Accountability Ordinance. JIT found that Sharif, his sons and his daughter Maryam Nawaz could not justify their income and assets, adding that Maryam Nawaz had been proved the beneficial owner of Nielsen and Nescoll.[53] The report further stated that Maryam was involved in falsifying evidence before the Supreme Court. The basis for this was the use of the Calibrifont in documents said to be from 2006, when the Calibri font wasn't publicly released until January 2007.[54][55] Among other critical findings was the discovery of an offshore company, FZE Capital, managed by Nawaz Sharif until 2014,[56] and the complete lack of supporting record in the United Arab Emirates related to the sale of Gulf Steel Mill, important to the case as it formed the basis of the 'Qatari letter' money trail.[57][58]

Following the JIT report[59] to the court on 10 July 2017, the Supreme Court began to hear arguments a week later. On 21 July 2017, the court concluded the hearings and reserved its judgement.[60] On 28 July 2017, the court announced its unanimous decision and disqualified the Prime Minister from holding public office, finding that he had been dishonest in not disclosing his employment in the Dubai-based Capital FZE company in his nomination papers.[61] The court also ordered National Accountability Bureau to file a reference against Sharif, his family and his former Finance Minister Ishaq Dar, corruption charges.[62][63][64][65]

Following the verdict, Nawaz Sharif was disqualified from serving as Prime Minister, and also as leader of the National Assembly.[66] The NAB was ordered by the court to investigate corruption charges against Sharif, his three children and his son-in-law.[67]