Nehemiah 10:28 “The rest of the people, the priests, the Levites, the gatekeepers, the singers, the temple servants, and all who have separated themselves from the peoples of the lands to the Law of God, their wives, their sons, their daughters, all who have knowledge and understanding, 29 join with their brothers, their nobles, and enter into a curse and an oath to walk in God's Law that was given by Moses the servant of God, and to observe and do all the commandments of the Lord our Lord and his rules and his statutes.
After the return to the land after the exile, with all the restorations of the city and the renewal of worship, the people recommitted themselves to the covenant they had broken with God. It wasn't just for the leaders to agree to: it had to do with everyone involved. Throughout history they had repeatedly left the commandments of God for the culture and religion of the surrounding peoples. It happened as they broke one commandment after another. Sometimes it was a slow side, while at others it spiraled downward quickly. The point was that they realized they could not pick and choose which of His laws to obey. The key word was and always is all the commands of the Lord. Are you always trying to renegotiate with Him?