Jesus told His apostles to teach others to obey all that He had commanded (Matthew 28:20). One who loves the Lord will first of all seek with all his heart to find out what those commandments are; and then he will seek to obey them (John 14:21).
Under the Law, God gave man commandments, but not the power to obey them. Why then did God give the Law? Only in order that man might discover that he's unable to come up to God's standards, and thus see his need of a Saviour and a Helper. "The Law has become our tutor to lead us to Christ" (Galatians 3:24).
But now God has made a new covenant with man. And He has given us, not only commandments, but also an Example in the person of our Lord Jesus Christ. Jesus demonstrated by His earthly life that it is possible for us to obey all of God's commandments.
God has also promised under the new covenant to put His Laws into our minds and to write them upon our hearts (Hebrews 8:10). He does this through the Holy Spirit dwelling in us. The Holy Spirit is our Helper Who not only shows us what the will of God is, but also gives us a desire to do that will and grace to obey all of it too.
Link - https://www.cfcindia.com/books/a-good-foundation