I repeat:
So did David the king.
yes, admittedly so. Like you and like me, we all deserve death. His punishment was the loss of his child.
I do not see the death of the child as David's punishment, per se.
-The death of this child came as no surprise to David because it had already been foretold by Nathan.
-Nathan had already explained the reason for death of this child to David.
-David's mourning during the child's sickness was an act of repentance.
-The death of this child was accepted as God's final answer to David's petitions for the child's life.
-David was comforted by the fact that what he asked for (and was denied) was grace.
-David found consolation and comfort in the death of the child because he was assured that, although the child could not return to be with him in life, he would go to be with the child in heaven.
https://bible.org/seriespage/13-death-david-s-son-2-samuel-1214-31
You dont know your bible, it says the loss of the child would be his punishment from God, outright.
2 Samuel 12
7 Then Nathan said to David, “You are the man! Thus says the Lord God of Israel: ‘I anointed you king over Israel, and I delivered you from the hand of Saul. 8 I gave you your master’s house and your master’s wives into your keeping, and gave you the house of Israel and Judah. And if that had been too little, I also would have given you much more! 9 Why have you despised the commandment of the Lord, to do evil in His sight? You have killed Uriah the Hittite with the sword; you have taken his wife to be your wife, and have killed him with the sword of the people of Ammon. 10 Now therefore, the sword shall never depart from your house, because you have despised Me, and have taken the wife of Uriah the Hittite to be your wife.’ 11 Thus says the Lord: ‘Behold, I will raise up adversity against you from your own house; and I will take your wives before your eyes and give them to your neighbor, and he shall lie with your wives in the sight of this sun. 12 For you did it secretly, but I will do this thing before all Israel, before the sun.’”
13 So David said to Nathan, “I have sinned against the Lord.”
And Nathan said to David, “The Lord also has put away your sin; you shall not die. 14 However, because by this deed you have given great occasion to the enemies of the Lord to blaspheme, the child also who is born to you shall surely die.” 15 Then Nathan departed to his house. And the Lord struck the child that Uriah’s wife bore to David, and it became ill. 16 David therefore pleaded with God for the child, and David fasted and went in and lay all night on the ground.
So, is your not seeing it willful or selective reading? It says it plain as day.