What did Muhammad to the Kaaba, the central shrine in Mecca?

A. he destroyed the shrine and no one ever visited there again
B. he used the shrine to record messages from Allah
C. he used the shrine to convert Meccans to Islam
D. he rededicated the shrine to Allah

D. he rededicated the shrine to Allah