Before this faith came, we were held prisoners by the law, locked up until faith should be revealed. So the law was put in charge to lead us to Christ that we might be justified by faith. Now that faith has come, we are no longer under the supervision of the law.
Galatians 3:23-25
The former regulation is set aside because it was weak and useless (for the law made nothing perfect), and a better hope is introduced, by which we draw near to God.
Hebrews 7:18-19