A Kabbalistic tradition within Judaism is that the commonly discussed messiah who will usher in a period of freedom and peace, Messiah ben David, will be preceded by Messiah ben Joseph, who will gather the children of Israel around him, lead them to Jerusalem. After overcoming the hostile powers in Jerusalem, Messiah ben Joseph, will reestablish the Temple-worship and set up his own dominion. Then Armilus, according to one group of sources, or Gog and Magog, according to the other, will appear with their hosts before Jerusalem, wage war against Messiah ben Joseph, and slay him. His corpse, according to one group, will lie unburied in the streets of Jerusalem; according to the other, it will be hidden by the angels with the bodies of the Patriarchs, until Messiah ben David comes and brings him back to life.