mzgt' (Middle Persian) comes from Arabic مَسْجِد, from Arabic سَجَدَ, from Arabic ج — Abbreviation of جَمْع.