The word mosque comes from the Arabic word masjid . The Arabic word masjid literally means a place of prostration . The word `` mosque '' in English refers to all types of buildings dedicated for Islamic worship , although there is a distinction in Arabic between the smaller masjid dedicated for the daily five prayers and the larger masjid jÄ mi ( Ù