Ezekiel 14:4-5

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.’