Psalms 106:39 Midrash

וַיִּטְמְא֥וּ בְמַעֲשֵׂיהֶ֑ם וַ֝יִּזְנוּ֗ בְּמַֽעַלְלֵיהֶֽם׃

Thus were they defiled with their works, And went astray in their doings.

Read midrashic interpretation of Psalms 106:39: and classical rabbinic exegesis.