During the first four centuries of Islamic rule Messianic hopes ran high among the peoples of the Caliphate. Christians, Jews, and Zoroastrians, subjected to the rule of a new and alien religion, cherished and embellished their traditions of a Messiah or Saoshyant of a God-chosen line who, in God's time, would come or return to the world, end the sufferings of the faithful and the dominion of their opponents, and establish the kingdom of God upon earth. Before very long Islam itself was affected. First in the heresies of the newly-converted, dissatisfied with the status assigned to them in what was still an Arab kingdom, grafting their old beliefs on their new faith; then in the orthodoxy of all Islam, the belief arose in a MaMhdī, a “ divinely guided one ” who, in the words of the tradition, would “ fill the earth with justice and equity as it is now filled with tyranny and oppression ”.
With the passing of empires and the flowering and disappointment of successive hopes, the tradition of the Coming grew and developed. One oppressor after another added something of himself to the portraits of the Antichrist, while the many false Messiahs, in their failure, bequeathed new details and new tokens to the Messiah yet to come. Each group had its own traditions; yet they were in no way separate and water-tight, and many ideas and beliefs passed, through converts and other channels, from one religion to another.
By no means the least impatient in their expectation of Redemption were the Jews. When the crumbling of empires under the blows of internal revolutions and external invasions seemed to portend the long awaited end, anxious Jewish eyes scanned the Time of Troubles in which they lived for signs of the coming of Messiah, and sought to identify, in the events taking place about them, the vague prophecies and traditions handed down to them of the last wars of the Messiah. It was in such times that the apocalyptic books were written.