What is the ruling on Fard prayer inside the Ka'bah according to the source?

Prayer inside, on, and around the Ka'bah