2 Samuel 12:16-17
12:16 Then David prayed to God for the child and fasted. He would even go and spend the night lying on the ground.
12:17 The elders of his house stood over him and tried to lift him from the ground, but he was unwilling, and refused to eat food with them.
2 Samuel 12:20
12:20 So David got up from the ground, bathed, put on oil, and changed his clothes. He went to the house of the Lord and worshiped. Then, when he entered his palace, he requested that food be brought to him, and he ate.