OTTAWA -- Former U.S. president Barack Obama has waded into the Canadian election, offering an unusual cross-border endorsement of Liberal Leader Justin Trudeau with five days left in the campaign.

鈥淚 was proud to work with Justin Trudeau as President. He's a hard-working, effective leader who takes on big issues like climate change. The world needs his progressive leadership now, and I hope our neighbors to the north support him for another term,鈥 said Obama

With photos emerging in this campaign the Liberal Leader鈥檚 reputation as a progressive leader on the world stage has taken a hit.

This backing from a major international figure was embraced by the Liberals as a welcome message that will reach progressive voters in Canada, a key bloc Trudeau is still pushing to lock down by Oct. 21, amid an NDP surge in the polls.

Trudeau thanked Obama, whom he called his 鈥渇riend,鈥 and said he was 鈥榳orking hard to keep our progress going.鈥

Within two hours of the tweet being sent off of it. 鈥淵ou鈥檝e probably seen the news,鈥 the email intended for party supporters begins, before showing Obama鈥檚 message and stating 鈥渨e couldn鈥檛 agree more,鈥 followed by a request to make an 鈥渦rgent campaign donation,鈥 to help the Liberals win.

Trudeau and Obama had a strong working relationship when Obama was president, and the pair have remained friendly since, publicizing their social outings in recent years, including just months before the election was called when Obama was in town for a speaking event hosted by the Liberal-linked Canada 2020.

Obama invited Trudeau to a star-studded state dinner at the White House in 2016. It was the first U.S. state dinner held for a Canadian prime minister since 1997, and Obama made a toast to 鈥渢he friendship between Americans and Canadians.鈥

Months later, Obama visited Canada and addressed the House of Commons. His speech was largely seen as a passing of the torch before Obama left office, saying the world 鈥渘eeds more Canada.鈥

Minutes after it was posted, a spokesperson for U.S. President Donald Trump鈥檚 2020 reelection campaign but according to Elections Canada, 鈥渁ll individuals, Canadian or non-Canadian, are free to express their views on any topic during an election."

In a statement the elections body said that a foreign citizen speaking about the Canadian election doesn't  "constitute an instance of undue foreign influence under the Canada Elections Act," and that factors considered before determining if "undue foreign influence" has taken place would include who incurred expenses and for what reason.

Canadian Conservatives also met the former U.S. president鈥檚 message with skepticism.

鈥淚 await a response on the Obama tweet from the federal government's rapid response team on foreign interference...鈥 , who was former Conservative prime minister Stephen Harper鈥檚 chief of staff.

Brodie was referring to one of the several new measures put in place by the Liberal government, aimed at further shoring up Canada's electoral system from foreign interference.

Called the "Critical Election Incident Public Protocol," the panel of senior public servants are responsible for deciding when and how to inform Canadians about concerning behaviour or content that comes to their attention. As of Wednesday, the panel has not come forward with any potential meddling efforts.

Liberal Party spokesperson Zita Astravas said the Liberal Party did not pay for this endorsement, but has not yet confirmed whether the party had asked for the support or was aware that it was coming.

When asked about the post at a campaign stop in Hamilton late Wednesday, Conservative Leader Andrew Scheer said he was focused on what voters have to say about the campaign.

鈥淚鈥檝e got millions of Canadians, like the ones here tonight, behind me,鈥 he said. 鈥淚鈥檓 not very interested in what former foreign leaders are saying. I鈥檓 just focused on finishing this election strong and putting forward my plan to help Canadians get ahead.鈥

Green Party Leader Elizabeth May said she was 鈥渟urprised that any former U.S. president would endorse or engage in Canadian politics. Clearly we remember the 鈥榖romance鈥 鈥 but I think it鈥檚 important for Canadians to decide who forms government.鈥

Polls suggest the election will come down to a tight race between the Liberals and the Conservatives. It was revealed during the campaign that Conservative Leader Andrew Scheer holds dual Canada-U.S. citizenship but is in the process of renouncing his American citizenship.

With files from CTVNews.ca Writer Ben Cousins