God made a covenant to restore Israel after they would disobey the Law.