The first 4 commandments are how we love God.
3 “You shall have no other gods before Me.
4 “You shall not make for yourself a carved image—any likeness of anything that is in heaven above, or that is in the earth beneath, or that is in the water under the earth; 5 you shall not bow down to them nor [b]serve them. For I, the Lord your God, am a jealous God, visiting[c] the iniquity of the fathers upon the children to the third and fourth generations of those who hate Me, 6 but showing mercy to thousands, to those who love Me and keep My commandments.
7 “You shall not take the name of the Lord your God in vain, for the Lord will not hold him guiltless who takes His name in vain.
8 “Remember the Sabbath day, to keep it holy. 9 Six days you shall labor and do all your work, 10 but the seventh day is the Sabbath of the Lord your God. In it you shall do no work: you, nor your son, nor your daughter, nor your male servant, nor your female servant, nor your cattle, nor your stranger who is within your gates. 11 For in six days the Lordmade the heavens and the earth, the sea, and all that is in them, and rested the seventh day.Therefore the Lord blessed the Sabbath day and hallowed it.
The last 6 how to love our neighbor
12 “Honor your father and your mother, that your days may be long upon the land which the Lordyour God is giving you.
13 “You shall not murder.
14 “You shall not commit adultery.
15 “You shall not steal.
16 “You shall not bear false witness against your neighbor.
17 “You shall not covet your neighbor’s house; you shall not covet your neighbor’s wife, nor his male servant, nor his female servant, nor his ox, nor his donkey, nor anything that is your neighbor’s.”
Jesus expanded what it means to have God’s law in our hearts quoting from the Ten Mat 5:19-30
From tables of stone (God's law on stone for its eternal nature Deut 4:13) to tablets of the heart ( God's law in the heart Heb 8:10) and Jesus shows us exactly what this looks like giving two examples as principles quoting right from the Ten Commandments applying the Ten not only keeping the letter but also applying it to our thoughts and feelings where sin and matters of the heart start from. If one removes anger and contempt from our hearts, thou shalt not murder would automatically be kept. This is how we keep the law in our heart, and it applies to all Ten Commandments as Jesus said not to break the least of these and the spirit of the law is greater, not lessor.
Matthew 5:19 Whoever therefore breaks one of the least of these commandments, and teaches men so, shall be called least in the kingdom of heaven; but whoever does and teaches them, he shall be called great in the kingdom of heaven. 20 For I say to you, that unless your righteousness exceeds the righteousness of the scribes and Pharisees, you will by no means enter the kingdom of heaven.
21 “You have heard that it was said to those of old (Old Covenant) , ‘You shall not murder, and whoever murders will be in danger of the judgment.’ 22 But I say to you that whoever is angry with his brother without a cause shall be in danger of the judgment.(New Covenant in Action) And whoever says to his brother, ‘Raca!’ shall be in danger of the council. But whoever says, [g]‘You fool!’ shall be in danger of [h]hell fire. 23 Therefore if you bring your gift to the altar, and there remember that your brother has something against you, 24 leave your gift there before the altar, and go your way. First be reconciled to your brother, and then come and offer your gift. 25 Agree with your adversary quickly, while you are on the way with him, lest your adversary deliver you to the judge, the judge hand you over to the officer, and you be thrown into prison. 26 Assuredly, I say to you, you will by no means get out of there till you have paid the last penny.
27 “You have heard that it was said [i]to those of old, ‘You shall not commit adultery.’ 28 But I say to you that whoever looks at a woman to lust for her has already committed adultery with her in his heart. 29 If your right eye causes you to sin, pluck it out and cast it from you; for it is more profitable for you that one of your members perish, than for your whole body to be cast into hell. 30 And if your right hand causes you to sin, cut it off and cast it from you; for it is more profitable for you that one of your members perish, than for your whole body to be cast into hell.
Not only should we literally not commit adultery or murder or breaking the least of these commandments we should not even think it the heart, where sin starts in the heart and what the new covenant is about God's law in our hearts Heb 8:10
3 “You shall have no other gods before Me.
4 “You shall not make for yourself a carved image—any likeness of anything that is in heaven above, or that is in the earth beneath, or that is in the water under the earth; 5 you shall not bow down to them nor [b]serve them. For I, the Lord your God, am a jealous God, visiting[c] the iniquity of the fathers upon the children to the third and fourth generations of those who hate Me, 6 but showing mercy to thousands, to those who love Me and keep My commandments.
7 “You shall not take the name of the Lord your God in vain, for the Lord will not hold him guiltless who takes His name in vain.
8 “Remember the Sabbath day, to keep it holy. 9 Six days you shall labor and do all your work, 10 but the seventh day is the Sabbath of the Lord your God. In it you shall do no work: you, nor your son, nor your daughter, nor your male servant, nor your female servant, nor your cattle, nor your stranger who is within your gates. 11 For in six days the Lordmade the heavens and the earth, the sea, and all that is in them, and rested the seventh day.Therefore the Lord blessed the Sabbath day and hallowed it.
The last 6 how to love our neighbor
12 “Honor your father and your mother, that your days may be long upon the land which the Lordyour God is giving you.
13 “You shall not murder.
14 “You shall not commit adultery.
15 “You shall not steal.
16 “You shall not bear false witness against your neighbor.
17 “You shall not covet your neighbor’s house; you shall not covet your neighbor’s wife, nor his male servant, nor his female servant, nor his ox, nor his donkey, nor anything that is your neighbor’s.”
Jesus expanded what it means to have God’s law in our hearts quoting from the Ten Mat 5:19-30
From tables of stone (God's law on stone for its eternal nature Deut 4:13) to tablets of the heart ( God's law in the heart Heb 8:10) and Jesus shows us exactly what this looks like giving two examples as principles quoting right from the Ten Commandments applying the Ten not only keeping the letter but also applying it to our thoughts and feelings where sin and matters of the heart start from. If one removes anger and contempt from our hearts, thou shalt not murder would automatically be kept. This is how we keep the law in our heart, and it applies to all Ten Commandments as Jesus said not to break the least of these and the spirit of the law is greater, not lessor.
Matthew 5:19 Whoever therefore breaks one of the least of these commandments, and teaches men so, shall be called least in the kingdom of heaven; but whoever does and teaches them, he shall be called great in the kingdom of heaven. 20 For I say to you, that unless your righteousness exceeds the righteousness of the scribes and Pharisees, you will by no means enter the kingdom of heaven.
21 “You have heard that it was said to those of old (Old Covenant) , ‘You shall not murder, and whoever murders will be in danger of the judgment.’ 22 But I say to you that whoever is angry with his brother without a cause shall be in danger of the judgment.(New Covenant in Action) And whoever says to his brother, ‘Raca!’ shall be in danger of the council. But whoever says, [g]‘You fool!’ shall be in danger of [h]hell fire. 23 Therefore if you bring your gift to the altar, and there remember that your brother has something against you, 24 leave your gift there before the altar, and go your way. First be reconciled to your brother, and then come and offer your gift. 25 Agree with your adversary quickly, while you are on the way with him, lest your adversary deliver you to the judge, the judge hand you over to the officer, and you be thrown into prison. 26 Assuredly, I say to you, you will by no means get out of there till you have paid the last penny.
27 “You have heard that it was said [i]to those of old, ‘You shall not commit adultery.’ 28 But I say to you that whoever looks at a woman to lust for her has already committed adultery with her in his heart. 29 If your right eye causes you to sin, pluck it out and cast it from you; for it is more profitable for you that one of your members perish, than for your whole body to be cast into hell. 30 And if your right hand causes you to sin, cut it off and cast it from you; for it is more profitable for you that one of your members perish, than for your whole body to be cast into hell.
Not only should we literally not commit adultery or murder or breaking the least of these commandments we should not even think it the heart, where sin starts in the heart and what the new covenant is about God's law in our hearts Heb 8:10