elon musk
SpaceX and Tesla CEO and founder Elon Musk. Reuters

Billionaire inventor Elon Musk on Tuesday accidentally shared his number on Twitter while texting John Carmack, the chief technology officer at Oculus.

Musk was trying to get in touch with John Carmack, the chief technology officer at Oculus, Facebook's virtual reality project, Business Insider reported.

But instead of sending a private message, Musk tweeted directly at Carmack, so his 16.7 million followers could see it, the report said.

"Do you have a sec to talk? My cell is..." the tweet read before listing a phone number. Musk's tweet was quickly deleted, but not before several followers noticed.

CNBC rang the number Musk posted and discovered a recorded message from the video game God of War. The audio clip, recorded by game creator David Jaffe, is one of two secret codes hidden in the game.

"By the Gods you've done it," the message says. "Somehow you've found your way here to me. I offer you my congratulations and my respect."