Psalms 40:8

6 Sacrifice and offering thou didst not desire; mine ears hast thou opened: burnt offering and sin offering hast thou not required.

7 Then said I, Lo, I come: in the volume of the book it is written of me,

I delight to do thy will, O my God: yea, thy law is within my heart.

9 I have preached righteousness in the great congregation: lo, I have not refrained my lips, O LORD, thou knowest.

10 I have not hid thy righteousness within my heart; I have declared thy faithfulness and thy salvation: I have not concealed thy lovingkindness and thy truth from the great congregation.

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

Compare

BSB
I delight to do Your will, O my God; Your law is within my heart.”
KJV
I delight to do thy will, O my God: yea, thy law is within my heart.
WEB
I delight to do your will, my God. Yes, your law is within my heart.”
ASV
I delight to do thy will, O my God; Yea, thy law is within my heart.
DARBY
To do thy good pleasure, my God, is my delight, and thy law is within my heart.
BLB
I have delighted to do Your will, O my God, and Your law [is] in the midst of my heart.”
ÅB
Å gjøre din vilje, min Gud, er min lyst,
og loven din er i mitt innerste.»
OTB
Jeg gleder meg i å gjøre din vilje, min Gud;
Din lov er i mitt hjerte.”
B1930
å gjøre din vilje, min Gud, er min lyst, og din lov er i mitt hjerte.

Study notes (Tyndale)

Original text and word study

Cross references