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.
Iran could be producing enriched uranium in a few months, the head of the UN nuclear watchdog Rafael Grossi was quoted as saying on Sunday, raising doubts about how effective US strikes to destroy Tehran's nuclear programme have been.
The Jerusalem District Court has cancelled this week's hearings in Prime Minister Benjamin Netanyahu's long-running corruption trial, accepting a request the Israeli leader made citing classified diplomatic and security grounds.
The Israeli military ordered Palestinians to evacuate areas in northern Gaza on Sunday before intensified fighting against Hamas, as US President Donald Trump called for an end to the war amid renewed efforts to broker a ceasefire.
Russia used hundreds of drones, cruise and ballistic missiles to attack western, southern and central Ukraine overnight, damaging homes and infrastructure and injuring at least six people, local authorities said on Sunday.
At least seven Palestinians were killed and several others injured early Sunday in a series of Israeli airstrikes targeting Gaza City and Khan Younis in the southern Gaza Strip, Palestinian News & Information Agency (WAFA) reported.