Hip-hop duo Blackalicious, MC Gift of Gab (left) and Chief Xcel, will perform at Brooklyn Bowl on Thursday. Their tour comes after a 10-year hiatus.

He may be the most famous pupil ever to attend Hogwarts School of Witchcraft and Wizardry, but late last year, Daniel Radcliffe showed the world that he saves his best magic for the microphone.

When the 26-year-old actor and hip-hop fan appeared on “The Tonight Show Starring Jimmy Fallon” in October, he caused a viral sensation by rapping the hip-hop duo Blackalicous’ song “Alphabet Aerobics,” which has 26 tongue-twisting verses, each themed around a letter of the alphabet and delivered with increasing speed.

“He killed it,” Blackalicious MC Gift of Gab (real name: Timothy Parker, 44) tells The Post. “We’re friends with [‘Tonight Show’ bandleader] Questlove, and he tweeted at us, telling us to watch the show. [Radcliffe] kept in time and everything. He did a great job — I was actually a little surprised!”

The track was originally released as part of Blackalicous’ 1999 EP “A2G” and, despite its complexity, only took a couple hours to write.

The video of Radcliffe’s version has now collected 45 million views online, and while Gab avoids putting an exact figure on it, it’s also given the group enough of a financial boost to “make a difference.”

Additionally, Radcliffe’s act shone a light on Gab and his partner, Chief Xcel (Xavier Mosley, 42), just in time for their comeback tour, including a performance at Brooklyn Bowl on Thursday.

Gab and Xcel met in Sacramento, Calif., in 1987 when they were students at John F. Kennedy High School. In 1994 they released their debut single “Swan Lake.” Their first album, “Nia,” came out in 1999.

The duo went on hiatus following their third album, “The Craft” (released in 2005), with both members exploring solo projects.

They tried reuniting once before, in 2012, but just as they were gearing up to return to work, Gab suffered kidney failure, and he ended up in the hospital for a month.

“I thought I had the flu, but then I realized I couldn’t walk 10 steps without being exhausted,” he says.

From that experience, the theme of the new album, “Imani Vol. 1” (out in September), emerged.

“I went through a lot of things mentally,” explains Gab. “I didn’t know if I could do a show or tour, but I’m on dialysis now, and I’m actually thriving. ‘Imani’ means faith in Swahili, and the album is about keeping your faith when you’re faced with obstacles that are beyond your control.”

Volumes 2 and 3 are planned, and Gab is only too happy to hold a guest spot at their gig this week for Radcliffe if he wants it. “If he’s reading this, he should reach out!”