James Corden has responded after Ricky Gervais called him out on Twitter for stealing one of his jokes about guitar lessons and town squares from his stand-up shows.

After noticing social media users sharing the clip, Gervais posted it and jokingly captioned it: “The bit about the town square advert for guitar lessons is brilliant,” Yahoo! reported.

He’s since deleted the comment, admitting he “started to feel sorry for him” after a fan noticed the original tweet was gone.

As someone questioned whether Corden had asked to use the joke, Gervais replied: “No. I reckon one of the writers ‘came up with it’ for him. I doubt he would knowingly just copy such a famous stand up routine word for word like that.”

READ MORE: James Corden ‘Apologized Profusely’ After Being Banned From NYC Restaurant For Being ‘The Most Abusive Customer’ To The Servers

The joke was used in Corden’s monologue when he was discussing Elon Musk taking over Twitter.

He said, “Because if someone puts up a poster in a town square that says guitar lessons available, you don’t get people in the town go, ‘I don’t want to play the guitar! I want to play the piano, you piece of s**t!’

“Well that sign wasn’t for you, it was for somebody else, you don’t have to get mad about all of it.”

READ MORE: James Corden Quips Wife Julia Must Think She Made ‘A Huge Mistake’ Marrying Him

Corden has since replied to the whole thing via “The Late Late Show” Twitter page, posting:

The latest online frenzy surrounding Corden comes after restauranteur Keith McNally banned him from his NYC restaurant Balthazar on Instagram for being “extremely nasty” and rude to staff. McNally has since revealed Corden had apologized and everything was ok.

See more in the clip below.