ESV: David therefore sought God on behalf of the child. And David fasted and went in and lay all night on the ground.
NIV: David pleaded with God for the child. He fasted and spent the nights lying in sackcloth on the ground.
NASB: David therefore pleaded with God for the child; and David fasted and went and lay all night on the ground.
CSB: David pleaded with God for the boy. He fasted, went home, and spent the night lying on the ground.
NLT: David begged God to spare the child. He went without food and lay all night on the bare ground.
KJV: David therefore besought God for the child; and David fasted, and went in, and lay all night upon the earth.
NKJV: David therefore pleaded with God for the child, and David fasted and went in and lay all night on the ground.