The story
- Ancient Greek · derived fromμεγίστη“greatest”
- Middle Persian · derived from𐭬𐭢𐭮𐭲𐭩𐭪
- Arabic · borrowed fromاَلْمَجِسْطِيّ“almagest”
- English todayAlmagest
From Arabic اَلْمَجِسْطِيّ (al-majisṭiyy, “almagest”), with اَل (al-) being the Arabic definite article, from Middle Persian 𐭬𐭢𐭮𐭲𐭩𐭪 (mgstyk /magestīg/), from Ancient Greek μεγίστη (megístē, “greatest”).
Etymology from Wiktionary, CC BY-SA 4.0.