JK Rowling has provided some divination education, after being told to go back to magic school - by rapper Tinie Tempah.

The suggestion came in an online discussion on the Harry Potter Author featuring in the hip hop artist's song Girls Like.

The tune featured the rap: "Tell JK that we still rolling."

A fan took to Twitter to ask the writer whether she ever thought she would be name-dropped in a song about what girls like.

After she said no, the rapper quipped that she should have "spent more time in Divination class".

The author replied: "Divination is a very imprecise branch of magic!"

It's not the first time the writer has engaged with hip hop artists on Twitter.

JK Rowling last month quoted a line from Chamillionaire's hit song Ridin when trying to end an online spat involving Glasgow MP Natalie McGarry.

She tweeted: "They see me Rowlin'. They hatin'"

And the response was noticed by the rapper who responded: "I was gonna remix your tweet to 'We see them trollin', but you already took home the Grammy. Touche."