A United Nations (U.N.) panel ruled in favor of Julian Assange after he whined that he was "arbitrarily detained." The founder of Wikileaks claimed asylum at the Ecuadorian Embassy in London back in 2012 so that he could evade repatriation to Sweden over claims of sexual assault, which he has denied, according to BBC News.

Before the panel made its decision, Assange said he would accept arrest from British authorities if the panel decides that his three-year stay in the embassy is not considered illegal detention.

Assange declared on Wikileaks' official Twitter account that he would surrender himself Friday at noon if the U.N. panel declares that he lost his case against Sweden and the United Kingdom.

"However, should I prevail and the state parties be found to have acted unlawfully, I expect the immediate return of my passport and the termination of further attempts to arrest me," he said, according to the Hollywood Reporter.

Previously, a lawyer working for Assange claimed that he is seeking passage to Ecuador if he manages to leave the embassy in the coming days.

His decision will be based on how the British and Swedish authorities respond to the report made by a U.N. panel, said lawyer Melissa Taylor, according to the Associated Press.