Inherited from Ottoman Turkish مسجد (mescid), from Arabic مَسْجِد (masjid).
Practice speaking and memorizing "mescit" and many other words and sentences in Turkish.