Zoroastrian — Avesta
Yasna 9:8
Azhi Dahaka is described as a three-headed, six-eyed dragon made by Angra Mainyu as a devastating threat to the living world. The hymn celebrates Thraetaona’s defeat of this formidable hostile being.
Later Pahlavi binding and end-time stories are later textual layers, not details silently added to this hymn.
Read the source