When the people did what those laws, commonly called the Mosaic Law, required, they were accepted by God as his people and were blessed by him.
כל עוד נשמעו לחוקי תורת משה, זכו כעם לחסדו של אלוהים ולברכתו (‏ שמות י ” ט: 5, 6‏).