David discovered this principle and this was probably why God let him off the hook and did not have him stoned to death for
adultery and murder like the law required: because David was humble and repented (even though Achan and
plenty of other people repented and God still punished them, and this has nothing to do with the fact that David was king and probably would not have commanded his own stoning to keep the law even though he wrote Psalm 119 which is all about how much he loved keeping every commandment in the law).