7 David had done something God had said was wrong, so God punished Israel.