WLC Q.97: What special use is there of the moral law to the regenerate?
Although they that are regenerate, and believe in Christ, be delivered from the moral law as a covenant of works, (Rom. 6:14, Rom. 7:4,6, Gal. 4:4–5) so as thereby they are neither justified (Rom. 3:20) nor condemned; (Gal. 5:23, Rom. 8:1) yet, besides the general uses thereof common to them with all men, it is of special use, to show them how much they are bound to Christ for his fulfilling it, and enduring the curse thereof in their stead, and for their good; (Rom. 7:24–25, Gal. 3:13–14, Rom. 8:3–4) and thereby to provoke them to more thankfulness, (Luke 1:68–69,74–75, Col. 1:12–14) and to express the same in their greater care to conform themselves thereunto as the rule to their obedience. (Rom. 7:22, Rom. 12:2, Tit. 2:11–14)
WCF 19.6.
Although true believers be not under the law, as a covenant of works, to be thereby justified, or condemned; (Rom. 6:14, Gal. 2:16, Gal. 3:13, Gal. 4:4–5, Acts 13:39, Rom. 8:1) yet is it of great use to them, as well as to others; in that, as a rule of life informing them of the will of God, and their duty, it directs and binds them to walk accordingly; (Rom. 7:12, 22, 25, Ps. 119:4–6, 1 Cor. 7:19, Gal. 5:14, 16, 18–23) discovering also the sinful pollutions of their nature, hearts, and lives; (Rom. 7:7, Rom. 3:20) so as, examining themselves thereby, they may come to further conviction of, humiliation for, and hatred against sin, (James 1:23–25, Rom. 7:9, 14, 24) together with a clearer sight of the need they have of Christ, and the perfection of His obedience. (Gal. 3:24, Rom. 7:24, Rom. 8:3–4) It is likewise of use to the regenerate, to restrain their corruptions, in that it forbids sin: (James 2:11, Ps. 119:101, 104, 128) and the threatenings of it serve to shew what even their sins deserve; and what afflictions, in this life, they may expect for them, although freed from the curse thereof threatened in the law. (Ezra 9:13–14, Ps. 89:30–34) The promises of it, in like manner, shew them God’s approbation of obedience, and what blessings they may expect upon the performance thereof: (Lev. 26:1–14, 2 Cor. 6:16, Eph. 6:2–3, Ps. 37:11, Matt. 5:5, Ps. 19:11) although not as due to them by the law as a covenant of works. (Gal. 2:16, Luke 17:10) So as, a man’s doing good, and refraining from evil, because the law encourageth to the one, and deterreth from the other, is no evidence of his being under the law; and not under grace. (Rom. 6:12, 14, 1 Pet. 3:8–12, Ps. 34:12–16, Heb. 12:28–29)