Romans 7:16

14 We know that the law is spiritual; but I am unspiritual, sold as a slave to sin.

15 I do not understand what I do. For what I want to do, I do not do. But what I hate, I do.

And if I do what I do not want to do, I admit that the law is good.

17 In that case, it is no longer I who do it, but it is sin living in me that does it.

18 I know that nothing good lives in me, that is, in my flesh; for I have the desire to do what is good, but I cannot carry it out.

Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
And if I do what I do not want to do, I admit that the law is good.
KJV
If then I do that which I would not, I consent unto the law that it is good.
WEB
But if what I don’t desire, that I do, I consent to the law that it is good.
ASV
But if what I would not, that I do, I consent unto the law that it is good.
DARBY
But if what I do not will, this I practise, I consent to the law that [it is] right.
BLB
Now if what I do not want, this I do, I assent to the law, that [it is] good.
ÅB
Men hvis jeg gjør det som jeg ikke vil, så vitner jeg jo med loven at den er god.
OTB
Og hvis jeg handler mot mine egne ønsker, erkjenner jeg at loven er god.
B1930
Men gjør jeg det som jeg ikke vil, da vidner jeg jo med loven at den er god;

Study notes (Tyndale)

Original text and word study

Cross references