22 He said, "While the child was yet alive, I fasted and wept; for I said, 'Who knows whether Yahweh will not be gracious to me, that the child may live?'
*Minor differences ignored. Grouped by changes, with first version listed as example.
Who can tell - David, and indeed all others under the Mosaic dispensation, were so satisfied that all God's threatenings and promises were conditional, that even in the most positive assertions relative to judgments, etc., they sought for a change of purpose. And notwithstanding the positive declaration of Nathan, relative to the death of the child, David sought for its life, not knowing but that might depend on some unexpressed condition, such as earnest prayer, fasting, humiliation, etc., and in these he continued while there was hope. When the child died, he ceased to grieve, as he now saw that this must be fruitless. This appears to be the sole reason of David's importunity.
And he said, while the child was yet alive,.... And so there was hope it might be continued:
I fasted and wept; or sought the Lord by prayer, and fasting, and weeping, that the threatening might not take place, that the child's life might be spared:
for I said; within himself, thus he reasoned in his own mind:
who can tell whether God will be gracious to me, that the child may live? and in hope of this he kept praying, fasting, and weeping; he could not tell but God might repent of the evil he had threatened, as in some cases he has done; see Joel 2:13. Abarbinel thinks that David fasted and wept to hide this matter from his wife, and his servants, and did not let them know that this was in his punishment, that the child should die.
*More commentary available at chapter level.