2 Samuel 12:16 in the King James Version
David therefore besought God for the child; and David fasted, and went in, and lay all night upon the earth.
Context
15 Then Nathan departed to his house. The LORD struck the child that Uriah’s wife bore to David, and he was very sick.
16 David therefore begged God for the child; and David fasted, and went in and lay all night on the ground.
17 The elders of his house arose beside him, to raise him up from the earth; but he would not, and he didn’t eat bread with them.