Australian refugee and prominent soccer player Hakeem al-Araibi, who is a refugee in Thailand, will be released.
According to the AP, a Thai court ordered the release of prime minister Al-Arabi after the prosecution did not demand further delivery of Bahrain.
He may be on his way back to Australia this evening in Bangkok.
Australia has been under tremendous pressure to release Al-Arabi, who applied for asylum, and claimed life is dangerous when he returns to Bahrain.
Former Australian athlete and SBS football presenter Craig Foster, who led the campaign to free Al-Arabi, said the soccer player's wife's "nightmare will soon be over."
A Suriyan Hongvilai court spokesman said on Monday that Hakeem al-Araibi is being treated to be released today. In an interview with the Associated Press, the Associated Press reported that a senior Thai official had no reason to stay in Thailand anymore.
Al-Arabi (25) was detained when he arrived in Thailand on November 27 for a honeymoon at Bangkok airport.
The arrest warrants were made after Bahrain issued a warrant of arrest on November 7. Australia complained that it had notified Thai authorities before they arrived.
Bahrain authorities arrested Prime Minister Al-Arabi for two months in a Bangkok limousine penitentiary ahead of a trial in India.
He was sentenced to 10 years in prison for dismissing the police station in 2012, despite appearing in soccer games a few minutes before the attack.
Al-Arabi, a refugee living in Australia, said he would be in serious danger if he returned to Bahrain.
A worldwide protest against the danger he faced when he returned home continued.
On Monday, Chatchom Akapin, Secretary General of the International Affairs Department, said a process is in progress to release him.
He said the BBC Thai Foreign Ministry had received information that Bahrain wanted to dismiss the case but did not know why. He said that a decision was made under Article 21 of the Prosecution Law and that the case could be dismissed unless it was public interest. "We called from the Foreign Ministry this morning and Bahrain said they do not want him anymore," Chatchom said.
"If they do not want him, we have no reason to leave him here"
Craig Foster defended Al-Arabi's position and even paid tribute to his visit to Thailand. On Monday evening, he wrote, "Our prayer response," on Twitter.
Earlier, Prime Minister Scott Morrison urged Australians to be patient about the incident.
Melbourne-based Al-Araibi (25) brought international criticism as the Thai court considered Bahrain's request for delivery.
Morrison wrote twice, demanding the release of Prime Minister Ali al-Arabi to the Thai prime minister, but he is waiting for a court hearing in April. Morrison said in a National Press Club speech: "It's not my job to get angry. It's my job to bring him home." But I am desperately trying to get Australians to see him return home. We will ask you to manage this carefully.
"We need to be patient, not just up and down, I know it looks like one." Thailand accused the Australian Interpol office of sending an international red warning about its Al-Arabi passport. But Australia says Bahrain should not issue the notice for the first time.
Morrison did not answer questions about Australia's role in detention by Prime Minister Al-Arabi and took steps to prevent it from being repeated.
"I am not free to go to the end of the question because of the problems," Morrison said.
Opposition leader Bill Shorten is scheduled to meet Al-Arabi's wife in Canberra on Wednesday.
Cave diving heroes and Australian Australians Dr Harris and Craig Challen joined the Al-Arabi campaign. These two men played a crucial role in boldly rescuing 12 young boys and coaches from flooded caves in Thailand and praised worldwide.