Some have falsely concluded Muslims worship a moon god. This conclusion is based upon a falsehood that has been propagated by Dr. Robert A. Morey. A Christian apologist and pastor who has been very critical of Islam.
This falsehood like many others is based in complete ignorance. This can be ascertained from the fact that the Qur’an explicitly instructs believers NOT to prostrate to the sun or moon but rather the creator. The one who created the celestial bodies.
Qur’an 41:37 And of His signs are the night and day and the sun and moon. Do not prostrate to the sun or to the moon, but prostate to Allah , who created them, if it should be Him that you worship.
Arabic: ومن اياته الليل والنهار والشمس والقمر لا تسجدوا للشمس ولا للقمر واسجدوا لله الذي خلقهن ان كنتم اياه تعبدون