(16) Besought God for the child.--It can hardly be necessary to say that this does not imply any want of submissiveness to God's will on David's part, nor an inordinate love for the child of his guilt. "In the case of a man whose penitence was so earnest and so deep, the prayer for the preservation of his child must have sprung from some other source than excessive love of any created object. His great desire was to avert the stroke as a sign of the wrath of God, in the hope that he might be able to discern, in the preservation of the child, a proof of Divine favour consequent upon the restoration of his fellowship with God. But when the child was dead, he humbled himself under the mighty hand of God, and rested satisfied with His grace, without giving himself up to fruitless pain" (O. von Gerlach, quoted by Keil). Yet David's deep love for the child is not to be overlooked altogether.

Verse 16. - David... went in. He went, not into the sanctuary, which he did not enter until after the child's death, but into some private room in his own house. There he remained, passing his nights stretched on the ground, and fasting until the seventh day. His fasting does not imply that he took no food during this long interval, but that he abstained from the royal table, and ate so much only as was necessary to maintain life. Now, what was the meaning of this privacy and abstinence? Evidently it was David's acknowledgment, before all his subjects, of his iniquity, and of his sorrow for it. The sickness of the child followed immediately upon Nathan's visit, and we may feel sure that news of his rebuke, and of all that passed between him and the king, ran quickly throughout Jerusalem. And David at once takes the position of a condemned criminal, and humbles himself with that thoroughness which forms so noble a part of his character. Grieved as he was at the child's sickness, and at the mother's sorrow, yet his grief was mainly for his sin; and he was willing that all should know how intense was his shame and self-reproach. And even when the most honourable of the rulers of his household (Genesis 24:2), or, as Ewald thinks, his uncles and elder brethren, came to comfort him, he persists in maintaining an attitude of heart stricken penitence.

David therefore besought God for the child,.... Perhaps went into the tabernacle he had built for the ark, and prayed to the Lord to restore the child, and spare its life; for though the Lord had said it should die, he might hope that that was a conditional threatening, and that the Lord might be gracious and reverse it, 2 Samuel 12:22,

and David fasted: all that day:

and went in; to his own house from the house of God:

and lay all night upon the earth; would neither go into, nor lie upon a bed, but lay on the floor all night, weeping and praying for the child's life, and especially for its eternal welfare: he having through sin been the means of its coming into a sinful and afflicted state.

12:15-25 David now penned the 51st Psalm, in which, though he had been assured that his sin was pardoned, he prays earnestly for pardon, and greatly laments his sin. He was willing to bear the shame of it, to have it ever before him, to be continually upbraided with it. God gives us leave to be earnest with him in prayer for particular blessings, from trust in his power and general mercy, though we have no particular promise to build upon. David patiently submitted to the will of God in the death of one child, and God made up the loss to his advantage, in the birth of another. The way to have creature comforts continued or restored, or the loss made up some other way, is cheerfully to resign them to God. God, by his grace, particularly owned and favoured that son, and ordered him to be called Jedidiah, Beloved of the Lord. Our prayers for our children are graciously and as fully answered when some of them die in their infancy, for they are well taken care of, and when others live, beloved of the Lord.