David pleaded with God for the boy. He fasted and went into his house and spent the night lying in sackcloth on the ground.
Jewish Publication Society of America Version (JPS1917) - 2 Samuel 12:16 >David therefore besought God for the child; and David fasted, and as often as he went in, he lay all night upon the earth.