On the night King Ahasuerus could not sleep, something far stranger was happening in heaven. According to the Chronicles of Jerahmeel, a 12th-century Hebrew chronicle preserved by Moses Gaster in 1899, God turned to the patriarchs and told them Israel had been condemned to destruction. Their sin? During the time of Nebuchadnezzar, they had failed to sanctify God's name, making it seem as though God lacked the power to save them.

The patriarchs accepted the judgment. But the moment God saw them bow to justice, He rose from His throne of justice and sat upon the throne of mercy. The heavenly host intervened too, reminding God that the entire world was created for the sake of the Torah given to Israel. "If You destroy this nation, what becomes of us?" they asked. God relented.

Then came one of the most unusual scenes in all of Jewish legend. God called out to the trees of creation and asked which among them would serve as a gallows for the wicked Haman. The fig tree volunteered first, claiming Israel had been compared to it in Scripture. The vine stepped forward, then the pomegranate, walnut, citron, willow, olive, apple, and cedar—each citing a biblical verse linking it to Israel. Finally the thorn spoke up: "I will serve, for the wicked were compared to me." God silenced every other tree. The thorn was chosen.

Meanwhile, the angel Michael visited Ahasuerus in the night and knocked him off his bed 366 times. Unable to sleep, the king ordered the royal chronicles brought before him. Gabriel then appeared in a dream disguised as Haman, sword drawn to kill. When Haman arrived at court the next morning, the king—already terrified—asked him how to honor a loyal man. Haman, assuming the king meant him, described a lavish parade. The king's reply stunned him: "Go and do this for Mordecai the Jew." The gallows Haman had built from his own house would soon be used—on himself.