A British politician channeled fictional wizard Albus Dumbledore to cast a spell over a televised debate about President Donald Trump.

On BBC’s “Question Time” on Thursday, British Member of Parliament Sam Gyimah recited one of the Harry Potter character’s most inspirational phrases almost verbatim as he praised U.K. Prime Minister Theresa May’s criticism of Trump’s retweets of anti-Muslim videos.

“It takes great bravery to stand up to your enemies,” said Gyimah, a member of the Conservative Party. “It takes even more bravery to stand up to your friends.”

Check out the full clip here:

During Harry Potter and the Philosopher’s Stone, Dumbledore says:

“It takes a great deal of bravery to stand up to your enemies, but a great deal more to stand up to your friends.”

Gyimah also revealed that he was “personally deeply uncomfortable” about Trump’s expected state visit to the U.K.

“He (Trump) is deliberately divisive and this will be divisive at a time that we are trying to unite our country,” he said. “The invitation has been sent and has been accepted. It’s above my pay grade in terms of what happens next.”

Conservative @SamGyimah has praised Theresa May for rebuking President Trump on his retweeting of Britain First #bbcqt pic.twitter.com/a9wFONx3KX — BBC Question Time (@bbcquestiontime) November 30, 2017

In the segment, Gyimah did not appear to refer to where his quote originally came from.

But it certainly caught the attention of people online. Twitter user David Slocombe shared this montage as a comparison:

*MUST WATCH* This gets better with every viewing!! you WON’T BELIEVE what’s he’s just said on national television #bbcqt pic.twitter.com/usvdVvqrDm — David Slocombe (@Dai_Slocs) November 30, 2017

Other Twitter users also delighted in the unexpected quotation:

I love Britain! Their politicians quote Dumbledore! https://t.co/nFUgzcxN1U — Laura Mccrary (@lauraMcc1422) December 1, 2017

10 points for Neville Longbottom! <3 https://t.co/v3ES9T28Dh — Capulcu Tonella (@diehimbeertonis) December 1, 2017

Haha oh my gosh a Dumbledore quote. Brilliant. #HarryPotter https://t.co/EG9pnpMF7j — Katelyn Buck (@katelynbuck325) December 1, 2017

Somebody’s channeling Dumbledore 😂 — Linda (@lindariv58) December 1, 2017