The family of Sami Hamdi, the British journalist being held by US Immigration and Customs Enforcement (ICE), is to be released, his family have said.
The 35-year-old commentator was detained by US immigration officers at San Francisco International Airport on 26 October.
After his arrest, a spokeswoman for the US Department of Homeland Security said his visa had been revoked as "those who support terrorism and undermine American national security will not be allowed to work or visit this country".
Conservative figures had been urging the Trump administration to expel Hamdi from the US after he spoke at a gala for the Council on American Islamic Relations (CAIR) in California and was due to speak at one of the group's events in Florida.
CAIR attacked the detention in late October and accused the Trump administration of holding him over his criticism of the Israeli government.
But on Monday evening, his family announced he is due to be freed.
The family of Mr Hamdi said in a statement: "Alhamdulillah, good news. The government has agreed to release Sami. He will be able to return home soon insha'Allah. Additional details forthcoming."
Mr Hamdi, who is Muslim and lives in London, accepted an offer to leave the US voluntarily, according to a CAIR statement.
The council said in a statement that the immigration charging document in Mr Hamdi's case "alleged only a visa overstay - after the government revoked his visa without cause and without prior notice - and never identified any criminal conduct or security grounds".
CAIR added: "This agreement establishes that the government does not consider Hamdi a danger to the community or to national security."
Read more from Sky News:
Maxwell 'wants Trump to commute her sentence'
US Senate strikes deal aimed at ending shutdown
"It is this simple: Sami never should have spent a single night in an ICE cell," Hussam Ayloush, CEO of CAIR's California chapter, said.
"His only real 'offence' was speaking clearly about Israel's genocidal war crimes against Palestinians."
Since January, the Trump administration has pursued a sweeping crackdown on immigration, including increasing social media vetting, revoking visas for people it claims praised the murder of conservative activist Charlie Kirk, and deporting student visa and green card holders who have voiced support for Palestinians and criticised Israel's conduct in the Gaza war.
(c) Sky News 2025: British journalist Sami Hamdi being held by US immigration to be freed, his family say
Ex-Labour MP Zarah Sultana at centre of new party row over £800k in donations
The rise of Christian nationalism in Britain and its relationship with the far right
Murder victim Muriel McKay officially declared dead more than 50 years after she was kidnapped
Doctor accused of killing six in German Christmas market attack apologises to family of boy
India: At least eight people killed in car explosion in New Delhi, police say
Gaddafi's son released by Lebanese authorities after decade in detention
Philippines is prone to floods - but even experienced people were shocked by Super Typhoon Fung-wong
Princess Beatrice appears at her first charity event in UK since Andrew stripped of prince title