Byzantine army
The word "alay" was transferred to Turkish from Persian. In Persian, it is taken from the Greek  aláyi(on) αλάγιον "independent cavalry unit in the Byzantine army (10th century)".