Call it a bad toke of luck.

An American man who allegedly smoked or ingested pot in Las Vegas faces three years in prison in the United Arab Emirates after traces of marijuana were found days later in his urine, according to Detained in Dubai, a website published by his attorney.

Peter Clark, 51, flew from Las Vegas to Dubai on Feb. 24, where he went to the hospital after suffering an attack of pancreatitis. Doctors there found traces of hashish in his urine – considered possession in the UAE – and reported Clark to authorities.

COLORADO AUCTIONING WEED-THEMED LICENSE PLATE TO RAISE MONEY FOR DISABILITY FUND

He was arrested on March 3 and spent three days in a "flea-ridden cell" before being allowed back to his hotel, where he awaits his fate.

He recorded a video of the ordeal after getting out of jail.

"Lost a ton of weight, no shower, no food, nothing to drink since I got here, no sleep," said Clark

"The UAE’s arbitrary enforcement of laws and lack of predictable legal outcomes means that Peter potentially faces years in prison for legally smoking marijuana. Even if found innocent, he can be dragged through a slow and costly legal process," said Clark’s attorney, Radha Stirling.

Clark claims he brought no drugs to Dubai, nor consumed or purchased drugs while there.

CLICK HERE TO GET THE FOX NEWS APP

He’s not the first Westerner who has suffered under similar charges.

British army veteran Andy Neal spent more than a year in jail before being released in 2019. Another Brit, Connor Clements, was arrested in Dubai after taking medical marijuana in the UK.

Read more at The New York Post.