On today, groundhog day there are four chapters, and they are momentous. Read them carefully. (Maybe not Exodus 21 and 22, they deal mostly with property rights and social responsibility. Thankfully, we are no longer under Mosaic law.)
Matthew 7 is a continuation of the sermon on the mount. Jesus was admonishing us not to be judgmental but to look to our own faults before condemning others. And don’t waste your time by casting pearls before swine. Ask, seek, knock is another theme, and so is doing to others what you would have them do to you. This sums up the Law and the Prophets. It grows into a crescendo with people claiming to have done good deeds, proclaim prophesies and perform miracles in Jesus’ name. And Jesus answered them: “I never knew you”. I took the liberty to add my own discovery of the meaning of these verses. The chapter ends with the parable of the foolish and the wise builders.
In Exodus 20 Moses was at Mount Sinai where God gave him the ten commandments.
Exodus 21 and 22 contain regulations on servanthood and slavery, penalties for manslaughter and personal injuries, all Mosaic law.