David prayed to God for the baby. David fasted and went into his house and stayed there, lying on the ground all night.