Ezekiel 14:10

And they shall bear their iniquity; the punishment of the prophet shall be the same as the punishment of the one who inquired,

Surrounding context

14:9 "And if the prophet is induced to speak anything, I the LORD have induced that prophet, and I will stretch out My hand against him and destroy him from among My people Israel.

14:10 And they shall bear their iniquity; the punishment of the prophet shall be the same as the punishment of the one who inquired,

14:11 that the house of Israel may no longer stray from Me, nor be profaned anymore with all their transgressions, but that they may be My people and I may be their God," says the Lord GOD."'

Translation and sources