Was God unjust in killing Uzzah? David learned the fear of God when he encountered God's just wrath toward Uzzah and then recognized God's lavish mercy toward him.