Pakistan's Supreme Court on Thursday ordered the release of former Prime Minister Imran Khan after terming his arrest unlawful.
The country's top court also directed Khan to appear before the Islamabad High Court (IHC) tomorrow, adding that he will have to abide by whatever decision the IHC gives.
Khan, who heads the Pakistan Tehreek-e-Insaf (PTI) party would spend the night in the same police guest house as before but allowed to meet a limited number of friends and family.
It was not immediately clear when he would be allowed to go home.
The latest orders were issued by a three-judge bench, headed by Chief Justice Umar Ata Bandial.
"The Supreme Court reversed all legal proceedings against Imran Khan ... he has been asked to present himself in the Islamabad High Court on Friday morning," lawyer Babar Awan told reporters.
Awan added that the court had ruled that Khan was now under its custody and not the anti-graft agency.
Imran Khan's detention on graft allegations has ignited deadly protests and a tussle with the country's powerful military.
Hamas handed over three Israeli hostages on Saturday, whose emaciated appearance shocked Israelis following their release on live TV, in the latest stage of a ceasefire deal aimed at ending the 15-month war in Gaza.
The US Coast Guard in Alaska found the wreckage of a small plane atop frozen sea ice on Friday, after the aircraft suddenly lost altitude on Thursday and the crash killed all 10 people on board, officials said.
A US judge has temporarily allowed roughly 2,700 US Agency for International Development employees put on leave by President Donald Trump's administration to go back to work, pausing aspects of a plan to dismantle the agency.
Hamas accused Israel of multiple breaches of their ceasefire agreement on Friday, a day before the scheduled exchange of three more Israeli hostages for Palestinian prisoners in the latest stage in a fragile deal aimed at ending the war in Gaza.