2 Samuel 12:16

16 and David seeketh God for the youth, and David keepeth a fast, and hath gone in and lodged, and lain on the earth.

2 Samuel 12:16 Meaning and Commentary

2 Samuel 12:16

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.

2 Samuel 12:16 In-Context

14 only, because thou hast caused the enemies of Jehovah greatly to despise by this thing, also the son who is born to thee doth surely die.'
15 And Nathan goeth unto his house, and Jehovah smiteth the lad, whom the wife of Uriah hath born to David, and it is incurable;
16 and David seeketh God for the youth, and David keepeth a fast, and hath gone in and lodged, and lain on the earth.
17 And the elders of his house rise against him, to raise him up from the earth, and he hath not been willing, nor hath he eaten with them bread;
18 and it cometh to pass on the seventh day, that the lad dieth, and the servants of David fear to declare to him that the lad is dead, for they said, `Lo, in the lad being alive we spake unto him, and he did not hearken to our voice; and how do we say unto him, The lad is dead? -- then he hath done evil.'
Young's Literal Translation is in the public domain.