Matthew Henry's Complete Bible Commentary
Verses 55—56
Here is, 1. The converse David had with the word of God; he kept it in mind, and upon every occasion he called it to mind. God’s name is the discovery he has made of himself to us in and by his word. This is his memorial unto all generations, and therefore we should always keep it in memory—remember it in the night, upon a waking bed, when we are communing with our own hearts. When others were sleeping David was remembering God’s name, and, by repeating that lesson, increasing his acquaintance with it; in the night of affliction this he called to mind. 2. The conscience be made of conforming to it. The due remembrance of God’s name, which is prefixed to his law, will have a great influence upon our observance of the law: I remembered thy name in the night, and therefore was careful to keep thy law all day. How comfortable will it be in the reflection if our own hearts can witness for us that we have thus remembered God’s name, and kept his law! 3. The advantage he got by it (Psalms 119:56): This I had because I kept thy precepts. Some understand this indefinitely: This I had (that is I had that which satisfied me; I had every thing that is comfortable) because I kept thy precepts. Note, All that have made a business of religion will own that it has turned to a good account, and that they have been unspeakable gainers by it. Others refer it to what goes immediately before: “I had the comfort of keeping thy law because I kept it.” Note, God’s work is its own wages. A heart to obey the will of God is a most valuable reward of obedience; and the more we do the more we may do, and shall do, in the service of God; the branch that bears fruit is made more fruitful, John 15:2. MHBCC 598.50