Ezekiel 14:4-10 AMP

4 Therefore speak to them and say to them, Thus says the Lord God: Every man of the house of Israel who takes his idols [of self-will and unsubmissiveness] into his heart and puts the stumbling block of his iniquity [idols of silver and gold] before his face, and yet comes to the prophet [to inquire of him], I the Lord will answer him, answer him according to the multitude of his idols,

5 That I may lay hold of the house of Israel in the thoughts of their own mind and heart, because they are all estranged from Me through their idols.

6 Therefore say to the house of Israel, Thus says the Lord God: Repent and turn away from your idols, and turn away your faces from all your abominations.

7 For anyone of the house of Israel or of the strangers who sojourn in Israel who separates himself from Me, taking his idols into his heart and putting the stumbling block of his iniquity and guilt before his face, and [yet] comes to the prophet to inquire for himself of Me, I the Lord will answer him Myself!

8 And I will set My face against that [false worshiper] and will make him a sign and a byword, and I will cut him off from the midst of My people; and you shall know (understand and realize) that I am the Lord.

9 [The prophet has not been granted permission to give an answer to the hypocritical inquirer] but if the prophet does give the man the answer he desires [thus allowing himself to be a party to the inquirer's sin], I the Lord will see to it that the prophet is deceived in his answer, and I will stretch out My hand against him and will destroy him from the midst of My people Israel.

10 And they both shall bear the punishment of their iniquity: the iniquity of the [presumptuous] prophet shall be the same as the iniquity of the [hypocritical] inquirer,