He didn't even teach them (of course you're talking about the "ten") in His ministry according to the record left about Him on the planet.
well, here's the record!!!
Matthew 5:17-19(NKJV)
17“Do not think that I came to destroy the Law or the Prophets. I did not come to destroy but to fulfill.
18For assuredly, I say to you, till heaven and earth pass away, one jot or one tittle will by no means pass from the law till all is fulfilled.
19Whoever 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.
see, you don't take time out to see what He said.
He came to fulfill. fulfill what? remember what He said to john the baptist?
Matthew 3:15(NKJV)
15But Jesus answered and said to him,
“Permit it to be so now, for thus it is fitting for us to fulfill all righteousness.” Then he allowed Him.
here again, Jesus is talking about fulfilling. and in the instance with john the baptist, He was fulfilling this verse:
Deuteronomy 18:15(NKJV)
15“The Lord your God will raise up for you a Prophet like me from your midst, from your brethren. Him you shall hear,
He not only set the example for the christian, He also fulfilled the prophesy of moses, by rising out of the water!
now, in matthew 5, Jesus is fufilling isaiah 42! He's expanding on the spiritual implications of the law, magnifying like most versions put it.
Isaiah 42:21(NKJV)
21 The Lord is well pleased for His righteousness’ sake; He will exalt the law and make it honorable.
Isaiah 42:21(KJV)
21The LORD is well pleased for his righteousness’ sake; he will magnify the law, and make it honourable.
Isaiah 42:21(ESV)
21 The Lord was pleased, for his righteousness’ sake, to magnify his law and make it glorious.
here's the word for exalt/magnify from strong's:
H1431
גָּדַל
gâdal
gaw-dal'
A primitive root; properly to twist (compare H1434), that is, to be (causatively make) large (in various senses, as in body, mind, estate or honor, also in pride):—advance, boast, bring up, exceed, excellent, be (-come, do, give, make, wax), great (-er, come to . . estate, + things), grow (up), increase, lift up, magnify (-ifical), be much set by, nourish (up), pass, promote, proudly [spoken], tower.
the bible is clear that Jesus did not come to do away with the law of God, rather, it shows that He had things to do concerning the law that He had to fulfill, not just living by the law, but adding to the teaching of the law.
so, for you to say that Jesus did not teach commandments, you could be no more wrong than you are with your reasoning.
bottom line is you can't answer this question:
how can Jesus speak of teaching commandments (mat 5:19) and not teach them Himself? (again, defies logic!)