Ezekiel 14:9

And if the prophet be deceived when he hath spoken a thing, I the LORD have deceived that prophet, and I will stretch out my hand upon him, and will destroy him from the midst of my people Israel.

Ezekiel, through whom the message came, belonged to the priestly family. He prophesied among the Israelite captives between the years 595 and 574, beginning and closing his work just a little later than Jeremiah. Before he began his prophetic work God gave him wonderful visions revealing divine glory and great majesty and impressed that majesty upon him, so that having once seen God he would not fear human opposition when sent with solemn messages of warning and reproof to sinners among his own people.

The verse stands in the first twenty chapters, belonging to his ministry among the captives in Babylonia while Jeremiah was prophesying in Jerusalem. The declaration that the Lord deceives the prophet describes God's judgment of abandoning people to deception when they turn away from Him and set up idols in their hearts, not a deception imposed on faithful people.