You are handling scripture there not accuratelt, but according to your whims and imagination. For David knew all depended upon Gods will on whether or not the child would live and not die, he expressed that , Let us read 2 Sam 12:20-21
21 Then said his servants unto him, What thing is this that...