Matthew 22:26 was not about the ten commandments.... The entire Law was filled with commandments. The Ten commandments were only a small part of the Law.
Look...
Matthew 22:36-40
36 Master, which is the great commandment in the law?
37 Jesus said unto him, Thou shalt love the Lord thy God with all thy heart,
and with all thy soul, and with all thy mind.
38 This is the first and great commandment.
39 And the second is like unto it, Thou shalt love thy neighbor as thyself.
40 On these two commandments hang all the law and the prophets.
Those were to be found in the Ten Commandments? No.
Jesus was referring to the Law, not just the Ten Commandments which are only contained in the Law.
Deuteronomy 6:5
5 And thou shalt love the Lord thy God with all thine
heart, and with all thy soul, and with all thy might.
That's not the Ten Commandments. That is what Jesus spoke of. Deuteronomy is a part of the Law.