Asalamu Alykum
Keep in mind that God took the oath/covenant of each people he guided through their own prophets.
3:81 Behold! Allah took the covenant of the Prophets saying: "I give you a Book and Wisdom; then comes to you an Messenger, confirming what is with you; do ye believe him and render him help." Allah said: "Do ye agree, and take this My Covenant as binding on you?" They said: "We agree." He said: "Then bear witness and I am with you among the witnesses."
Prophet Muhammad has also took that covenant.
33:7 And remember We took from the Prophets their Covenant: and from
thee: from Noah, Abraham, Moses, and Jesus, the son of Mary: We took from them a solemn Covenant:
Covenant taken by the people of Prophet Muhammad
005.007
"And remember the favour of God upon you(the people of Muhammad), and His covenant , which He ratified with you / bound you with, when you said: "We hear and we obey": And fear God, for God knows well what is in the breasts"
57:8 And why do you not believe in Allah while the Messenger invites you to believe in your Lord and He has taken your covenant, if you should [truly] be believers?
Children of Israel took covenant with God
2:83-84 And remember We took a covenant from the children of Israel (to this effect): worship none but Allah; treat with kindness your parents and kindred, and orphans and those in need; speak fair to the people; be steadfast in prayer; and give Zakat. then did ye turn back except a few among you, and ye backslide (even now). And remember We took your Covenant (to this effect): shed no blood amongst you, nor turn out your own people from your homes; and this ye solemnly ratified, and to this you were witness.
It seems from the Quran that God has always attached a agreement/covenant after sending people a guidance to them, that to hold fast in what was given to them and follow it.
2:63 And remember We took your covenant and We raised above you the towering height of Mount (Sinai) (saying): "Hold firmly to what We have given you and bring (ever) to remembrance what is therein: perchance ye may fear Allah."
If you look at the Facebook article by brother Joseph you can see the commandments of the children of Israel and the commandments given to the Prophet Muhammad and the Believers.
[1]Hope that helps Insha'Allah
Peace
The Ten Commandments Related by the Quran
[1]
https://www.facebook.com/joseph.a.islam/posts/517831938353938