Upon hearing the news that his child would die, David fasted and wept to the Lord, because he knew the Lord may be gracious to him, change his course, and allow the child to live. David knew this, why don't we?
2 Samuel 12:22 And he said, While the child was yet alive, I fasted and wept: for...