2 Samuel 12:15-19 NIV

15 After Nathan had gone home, the LORD struck1 the child that Uriah's wife had borne to David, and he became ill.

References for 2 Samuel 12:15

16 David pleaded with God for the child. He fasted and went into his house and spent the nights lying2 on the ground.

References for 2 Samuel 12:16

17 The elders of his household stood beside him to get him up from the ground, but he refused,3 and he would not eat any food with them.4

References for 2 Samuel 12:17

18 On the seventh day the child died. David's servants were afraid to tell him that the child was dead, for they thought, "While the child was still living, we spoke to David but he would not listen to us. How can we tell him the child is dead? He may do something desperate."
19 David noticed that his servants were whispering among themselves and he realized the child was dead. "Is the child dead?" he asked. "Yes," they replied, "he is dead."