A student pilot from Egypt has agreed to leave the US after posting on Facebook that the world would thank him if he killed Donald Trump.
Emadeldin Elsayed, 23, was not charged with a crime but the US authorities sought to deport him, his attorney, Hani Bushra, said.
Immigration authorities said they would allow him to return home voluntarily as long as he departed by 5 July.
Mr Elsayed is being held in a jail in California after his visa was revoked.
Mr Bushra said on Monday that Mr Elsayed's detention was illegal.
"He's being detained, I think, primarily because he's a Muslim and he's a Middle Easterner," Mr Bushra told the AP news agency. "This kid is going to become a poster boy for hating America."
US Secret Service agents interviewed Mr Elsayed in early February after he posted a photo of Mr Trump on Facebook and wrote he was willing to serve a life sentence for killing the billionaire, and the world would thank him, Mr Bushra said.
Mr Elsayed had said earlier that he never intended to hurt anyone. He said he wrote the post because of Mr Trump's comments about Muslims.
Mr Trump, who is leading the race for the Republican nomination for the presidency, has promised a crackdown on immigration. He has vowed to build a wall along the entire Mexican border and called for a temporary ban on Muslims entering the country.
Latest Stories
-
You’re elected to work, not to lament – Afenyo-Markin tells NDC gov’t
3 minutes -
You can’t direct Mahama on how to appoint ministers – Mahama Ayariga to Afenyo-Markin
22 minutes -
2024 electoral offences: OSP vows to probe and prosecute offenders
31 minutes -
We can raise revenue without increasing taxes – Ato Forson
38 minutes -
I will lead the charge in cutting wastage – Ato Forson
43 minutes -
I don’t need a siren as MP – John Dumelo
49 minutes -
NDA boss addresses allegations of missing motorbikes and procurement irregularities
53 minutes -
I only said we’ll seek additional IMF funds if need be – Finance Minister-designate
54 minutes -
Maintain Akwasi Agyeman as GTA boss – Austine Woode to Mahama
1 hour -
Protecting local businesses – a pillar for economic growth
1 hour -
Baseball: Golden Palms defend African title, secure Youth World Championship slot
1 hour -
Zenith Bank Ghana claims ‘Bank of the Year’ Honour at The Banker Awards
1 hour -
OSP completes probe into Police recruitment, Charles Bissue cases; outlines progress and challenges in Anti-Corruption fight
1 hour -
The future of work is here – why agile working will make or break your business in Ghana
1 hour -
T-bills: Government records 55% oversubscription; interest rates skyrocket
2 hours