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.
Russian ballistic missiles killed at least five people and injured over two dozen more in Kyiv early on Thursday, authorities said on the Telegram messaging app, damaging buildings and leaving parts of the Ukrainian capital without power.
South Korea and the United States will cut short annual joint military drills to five days from 11 and scale back some field training, the allies said on Wednesday, after President Donald Trump ordered a substantial reduction in US participation.
At least 100 people were killed when a low-tech artisanal gold mine collapsed in the Central African Republic on Tuesday, a senior official at a local mining association said.
An Israeli airstrike killed nine Palestinians at a police station in Gaza on Wednesday, medics said, two days after US envoy Jared Kushner ended a trip to the region that failed to push forward Donald Trump's plan to end the war in the enclave.