Psalms 106:36 (KJV)

And they served their idols: which were a snare unto them.