Fourthly. Being determined in his heart, he tells us, I entreated thy favor with my whole heart. He found he had sinned; that he needed mercy; that he had no time to lose; that he must be importunate; and therefore he sought that mercy with all his soul.
Fifthly. Feeling that he deserved nothing but wrath, that he had no right to any good, he cries for mercy in the way that God had promised to convey it: "Be merciful unto me!" And to this he is encouraged only by the promise of God; and therefore prays, "Be merciful unto me According to thy Word."
I entreated thy favor - Margin, as in Hebrew, “face.” That is, he prayed that God would lift upon him the light of his countenance; that he would not avert his face from him in anger.
With my whole heart - With sincere, undivided affections. See Psalm 119:2, Psalm 119:10, Psalm 119:34; Psalm 9:1.
Be merciful unto me according to thy word - See the notes at Psalm 119:41.