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 Kuwait Petroleum Corporation (KPC) has announced that the Mina Al-Ahmadi Refinery, operated by Kuwait National Petroleum Company (KNPC), came under drone attacks early on Friday, with a fire breaking out at several units as a result.
France, Spain, Bahrain, and India have condemned the Iranian attack that targeted Qatar's Ras Laffan Industrial City during separate phone calls with Qatar's Emir Sheikh Tamim bin Hamad Al Thani.
President Donald Trump has drawn a parallel on Thursday between US strikes on Iran and Japan's 1941 attack on Pearl Harbour, as he defended the war he launched against Tehran while meeting Japanese Prime Minister Sanae Takaichi in Washington.
Iran no longer has the capacity to enrich uranium or make ballistic missiles after 20 days of US-Israeli air attacks, Israeli Prime Minister Benjamin Netanyahu told a news conference on Thursday.
The US objectives in its war against Iran have not changed since strikes started on February 28, Defence Secretary Pete Hegseth said on Thursday, and he accused the media of stirring up concerns that the country risked being locked in an open-ended conflict with shifting priorities.