Ezekiel 20:16-17

20:16 I did this because they rejected my regulations, did not follow my statutes, and desecrated my Sabbaths; for their hearts followed their idols. 20:17 Yet I had pity on them and did not destroy them, so I did not make an end of them in the wilderness.

Ezekiel 20:24

20:24 I did this because they did not observe my regulations, they rejected my statutes, they desecrated my Sabbaths, and their eyes were fixed on their fathers’ idols.