Israel will release renowned Palestinian physicist Imad Barghouthi from jail on Sunday, the Palestinian Prisoner's Club stated on Friday, following an international campaign against his detention without trial.

The 54-year-old professor of astrophysics at al-Quds University in East Jerusalem was arrested in April and put in administrative detention for three months. According to his lawyer, his arrest was prompted by Facebook posts deemed incitement to terrorism by Israel, but the Israeli security establishment believes him to be involved in activities linked to Hamas.

A military court granted Barghouthi's appeal against his detention earlier this month, and ruled that he will be released on June 24, a month before the end of his detention. The state appealed the decision, but a judge declined the appeal, upholding the original ruling.

According to Thursday's ruling, though it is clear that Barghouthi is a Hamas member who is involved in the incitement of students, this doesn't constitute enough grounds for administrative detention, which is reserved for cases posing immediate danger. At the hearing, Barghouthi said that though he stands against the occupation, he poses no threat to Israel's security.

Over 350 academics signed a petition to free the physicist. These included eminent researchers Freeman Dyson, Professor Emeritus of Physics at the Institute for Advanced Study in Princeton; Fields Medal laureate David Mumford,Professor Emeritus of Mathematics at Brown University; and Chandler Davis, Professor Emeritus of Mathematics at the University of Toronto. Notable pro-Palestinian scholar Noam Chomsky also signed the petition.

Barghouthi's lawyer Jawad Boulos told Haaretz that he believes the court's order will be carried out and that he doesn't foresee any last minute surprises.

This was Barghouthi's second stint in an Israeli jail. In 2014, he was arrested at the Israel-Jordan border crossing, on his way to Amman to board a flight to the United Arab Emirates for a conference.

He was then placed under administrative detention. His lawyer said that his arrest was due to statements Barghouthi made during the 2014 Gaza war. "In an interrogation after his arrest, he was asked about what he wrote on Facebook and stated on TV against the occupation," Boulos told Nature at the time.

Barghouthi appealed the detention and was released early, again following an international campaign.