the fourth century bc the greeks saw the magi as being associated with the zoroastrian religion of persia and the term became synonymous with practitioners of magic , astrology , and higher knowledge .