The children of Israel made a covenant with Yah (God) to keep all his
commandments and to do His will.
"God's invitation for a relationship sometimes extends beyond the personal level. He invited the whole nation of ancient Israel into a relationship with Him."
I am not an expert on this, but I hope this is what you were looking for. I hope that someone with more experience in this area will help.