Judaism came first, but Zoroastrianism was a huge influence on Judaism. Many scholars believe that Judaism was still polytheistic at the point in which Zoroastrianism arrived. Zoroastrianism is commonly believed to be the first monotheistic religion, though it does place great importance on both a creator and destroyer. This is probably where the concept of Lucifer/Satan, as adversary, came from. Before this, of course, one could see Set in Egyptian mythology as a major source of evil and strife, but Set was not diametrically opposed to a creator god, in a monotheistic setting.
Some Jews may dispute these claims, and it's not universal to believe that Zoroastrianism was this great of an influence on Judaism. Myself, I think it's pretty much obvious.
Zoroastrianism was the religion of Persia.