Yahweh is a paranoic god, who deceived many of his prophets. Ezekiel had to publish many false prophecies though Yahweh ordered him to proclaim them. Note what the Jewish Ecyclopedia admitted:
In xxvi.-xxviii. Ezekiel had positively prophesied the capture and
destruction of Tyre by Nebuchadnezzar, but after thirteen years of
fruitless labor the latter had to raise the siege and to arrange terms
of peace with the city. Thereupon, in the above-mentioned passage,
Ezekiel promises Egypt to Nebuchadnezzar as an indemnity. Here, then, is
an oracle the non-fulfilment, of which the prophet himself is destined
to see. Yet he does not venture to change or to expunge it. Incidentally
it may be stated that the transmission of oracles of which the prophets
themselves were doomed to see the non-fulfilment is the strongest proof
that they regarded these as messages for which they were not personally
responsible, and which, consequently, they did not venture to change;
they regarded them as God's word, the responsibility for the
non-fulfilment of which rested with God, not with themselves. In view of
these facts it must be assumed that although Ezekiel completed his book
in 572, he availed himself of earlier writings, which he allowed to
remain practically unchanged. (JewishEncyclopedia, Ezekiel , book of)