God provided the grace, faith received the gift. Jesus connected personal faith in Him to our eternal salvation. But Jesus also demanded good works to go along with faith.
Then there is St. Paul. The apostle is known as the foremost advocate of justification by faith. St. Paul is not opposing faith to ethical works but to the “works of the Law.”
When we come to Christ as sinners, we have no works to offer to Him, but only faith and repentance. But once we come to Him and receive the gift of salvation, we enter into a sacred covenant to honor Him with good works.