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.
The UN Human Rights Office said on Friday nearly 70 per cent of the fatalities it has verified in the Gaza war were women and children, and condemned what it called a systematic violation of the fundamental principles of international humanitarian law.
Indonesia's Mount Lewotobi Laki-laki erupted several times on Friday, belching volcanic ash that rose up to 10 km (32,800 ft) into the sky, officials said, following a big eruption on Sunday night that killed nine people.
Israeli Prime Minister Benjamin Netanyahu has directed two rescue planes to Amsterdam after being informed of "a very violent incident" targeting Israeli citizens, his office said on Friday.
Pakistan's Punjab banned entry to many public spaces from Friday, including parks and zoos, as it sought to protect people from severe air pollution in parts of the eastern province.