Psalm 106:39
They defiled themselves by their actions and prostituted themselves by their deeds.
Berean Standard Bible
Thus were they defiled with their own works, and went a whoring with their own inventions.
Thus they were defiled with their works, and prostituted themselves in their deeds.