Kind of unrelated, but there is a Greek story, I think, to the effect that Alexander had a dream that (what he considered to be “a”) god appeared to him and told him that, if he spared a certain city when people came out to greet him wearing certain ceremonial dress and surrendered, that he (Alexander) would be permitted to conquer the known world.
Turns out the dress was the High Priest outfit for the Jewish Temple in Jerusalem, they, too, had been told in a dream to ride out undefended and surrender with the gates of the city open.
Anyway, depsite Israel nominally siding with earlier enemies, Alxander did, inexplictedly, decline to attack Jerusalem, accepted their peaceful surrender, and let the Jews go about their business as a satelite nation of his.
I’ve heard a Jewish version of the same story.
Yeah, I’ve read similar versions. The fact is that Alexander was, generally speaking, pretty lenient toward cities that didn’t resist him, and he was hell on cities that did resist. And Jerusalem would have seen the examples of Tyre and Gaza before he showed up at their doorstep.