David pleaded with God for the boy. He fasted, and he went in and spent the night lying on the ground.
In context
14But because by this deed you have utterly scorned Yahweh, the son born to you will surely die.” 15Then Nathan went home. And Yahweh struck the child that Uriah’s wife had borne to David, and he became gravely ill. 16David pleaded with God for the boy. He fasted, and he went in and spent the night lying on the ground. 17The elders of his household stood over him to raise him up from the ground, but he refused, and he would not eat any food with them. 18On the seventh day the child died. David’s servants were afraid to tell him the child was dead, for they said, “While the child was still alive, we spoke to him and he would not listen to us. How can we tell him the child is dead? He may do something desperate.”