And God was displeased with this thing; therefore he smote Israel.
This command was also evil in the sight of God; so He struck Israel.