All of the Old Testament is Law. It is often called “The Law and the Prophets”.
And to WHOM was that LAW given?