David knew very well what he was doing. Sure he may have suppressed the truth in unrighteousness and thus was in a darkened state of ignorance, but this state was his own doing.
When people engage in sin they push the truth from their mind in order to engage the sin.
It was purely by the grace of God that Nathan gave David a wake-up call.
But do you understand the whole message that is in there? Do you get that David as God calls him,the man after God's own heart,(A child of God),should have been stoned for the adultery,put to death of the murder of Uriah,cut off from God's people because David did so during Bathsheba's time of purification due to her time of uncleanness,he also coveted Bathsheba,he stole her from Uriah,and he lied during this time to cover up what he had done. David by all rights should have died. But do you get the point that God in His great mercy DID NOT strike David dead even while he was in the midst of this? Do you get the point that David was in rebellion and God DID NOT let him go? (Not that we should do like David did it's playing with fire and not a good place to be) No where can anyone find a place where God says that David is NOT His child.
Did David get slapped upside the head? Of course he did.
2 Samuel 12
12 The Lord sent Nathan to David. When he came to him, he said, “There were two men in a certain town, one rich and the other poor. [SUP]2 [/SUP]The rich man had a very large number of sheep and cattle, [SUP]3 [/SUP]but the poor man had nothing except one little ewe lamb he had bought. He raised it, and it grew up with him and his children. It shared his food, drank from his cup and even slept in his arms. It was like a daughter to him.
[SUP]4 [/SUP]“Now a traveler came to the rich man, but the rich man refrained from taking one of his own sheep or cattle to prepare a meal for the traveler who had come to him. Instead, he took the ewe lamb that belonged to the poor man and prepared it for the one who had come to him.”
[SUP]5 [/SUP]David burned with anger against the man and said to Nathan, “As surely as the Lord lives, the man who did this must die![SUP]6 [/SUP]He must pay for that lamb four times over, because he did such a thing and had no pity.”
[SUP]7 [/SUP]Then Nathan said to David, “You are the man! This is what the Lord, the God of Israel, says: ‘I anointed you king over Israel, and I delivered you from the hand of Saul. [SUP]8 [/SUP]I gave your master’s house to you, and your master’s wives into your arms. I gave you all Israel and Judah. And if all this had been too little, I would have given you even more. [SUP]9 [/SUP]Why did you despise the word of the Lord by doing what is evil in his eyes? You struck down Uriah the Hittite with the sword and took his wife to be your own. You killed him with the sword of the Ammonites. [SUP]10 [/SUP]Now, therefore, the sword will never depart from your house, because you despised me and took the wife of Uriah the Hittite to be your own.’
[SUP]11 [/SUP]“This is what the Lord says: ‘Out of your own household I am going to bring calamity on you. Before your very eyes I will take your wives and give them to one who is close to you, and he will sleep with your wives in broad daylight. [SUP]12 [/SUP]You did it in secret, but I will do this thing in broad daylight before all Israel.’”
[SUP]13 [/SUP]Then David said to Nathan, “I have sinned against the Lord.”
Nathan replied, “The Lord has taken away your sin. You are not going to die.[SUP]14 [/SUP]But because by doing this you have shown utter contempt for[SUP][a][/SUP] the Lord, the son born to you will die.”
No where in there does it say that the Lord let David get away it. Which should be a warning against rebellion. David paid a high price for it for the REST of his life. But no where in there does the Lord ever say that David is not His. Again another warning against rebellion. God does not treat rebellion lightly from His children. It is much to high a price to pay for it.