Thus were they defiled with their works, and went astray in their doings.
King James Version (KJV) - Psalms 106:39 >Thus were they defiled with their own works, and went a whoring with their own inventions.
Berean Study Bible (BSB) - Psalms 106:39 >They defiled themselves by their actions and prostituted themselves by their deeds.