Ezekiel 14:3-5
14:3 “Son of man, these men have erected their idols in their hearts and placed the obstacle leading to their iniquity right before their faces. Should I really allow them to seek me?
14:4 Therefore speak to them and say to them, ‘This is what the sovereign Lord says: When any one from the house of Israel erects his idols in his heart and sets the obstacle leading to his iniquity before his face, and then consults a prophet, I the Lord am determined to answer him personally according to the enormity of his idolatry.
14:5 I will do this in order to capture the hearts of the house of Israel, who have alienated themselves from me on account of all their idols.’
Ezekiel 14:7-8
14:7 For when anyone from the house of Israel, or the foreigner who lives in Israel, separates himself from me and erects his idols in his heart and sets the obstacle leading to his iniquity before his face, and then consults a prophet to seek something from me, I the Lord am determined to answer him personally.
14:8 I will set my face against that person and will make him an object lesson and a byword and will cut him off from among my people. Then you will know that I am the Lord.