You need to read real historical records, not religious bullshit.
Jews had been excluded from Jerusalem for 500 years until the Persians (Sassanids) conquered Jerusalem and allowed Jews to re-enter for a short time. This is from a Jewish historical site which I use when Zionists try to produce alternative facts.
In 602 AD "After they took Jerusalem, the Persians allowed the Jews back into their city, after an absence of 500 years caused by the Romans and the Byzantines. This had a great echo in the Jewish diaspora who believe that this capture was a sign of the upcoming Messianic times. But the situation did not last long as the Sassanid ruler reversed his decision to allow the Jews in the city, by fears of many rebellions across his empire."
In 627 AD "The Judea (or Palestine) and the city of Jerusalem was reconquered by the army of Byzantine emperor Heraclius in 628. So the Jews had only been able to remain over their city for about 7 years until 628. Heraclius started to reign in 610. He was from Cappadocia, a region of Asia Minor, in modern-day Turkey, but of Armenian descent. "
"And indeed, the return of Byzantine rule over Jerusalem was very bad news for the Jews. Although Heraclius had given them his oath of protection, once in Jerusalem he was influenced by the local Christians to carry out a massacre in Jerusalem and of Galilee because of their support to the Persians in the previous war, as reported by Eutychius, Patriarch of Alexandria:
"Heraclius said to them [the Christians of Jerusalem]: “What do you want, then?”“That you give us satisfaction,” they replied. “Kill every Jew who is found around Jerusalem and in Galilee, because if another hostile people come to us, we don’t want them to help them again against us, just as they have helped the Persians.”--- Annals of Eutychius (see
text online)"
"638 CE – The Muslims take Jerusalem
Two years after the death of Muhammad, Omar ibn al-Khattab, one of his fathers-in-law, became the second Caliph and directed the army of Muslims into the Levant. They took several cities from the Byzantines, often with the help of the Jews who saw them as liberators against the oppression exerted upon them by the Christian rulers.
"Jerusalem alone stood in the midst of the Muslim conquest. The Christian religious authority of the city preferred to surrender it, with suitable peace guarantees, rather than seeing it destroyed. So Omar entered Jerusalem in 638 without a battle."
SEDER OLAM REVISITED - Chronology of the Jewish History