The Catechism in Questions & Answers

295. Did Jesus and His Apostles comment on the Ten Commandments?

Yes. Jesus reinforced the Ten Commandments. He even sharpened some of the commandments by giving them a deeper meaning and expanding their original scope.
His Apostles ultimately made it clear that breaking even one of the commandments amounted to a violation of the law as a whole: “For whoever shall keep the whole law, and yet stumble in one point, he is guilty of all” (James 2: 10).

“You have heard that it was said to those of old, ‘You shall not murder, and whoever murders will be in danger of the judgement.’ But I say to you that whoever is angry with his brother without a cause shall be in danger of the judgement.”
Matthew 5: 21, 22
“You have heard that it was said to those of old, ‘You shall not commit adultery.’ But I say to you that whoever looks at a woman to lust for her has already committed adultery with her in his heart.”
Matthew 5: 27-28