God considered this behavior to be evil, so he attacked Israel. 