He was made an example (Leviticus 24)

The Lord specifically directed Moses to have the people stone the man to death who had blasphemed the Name, the holy name of God.

He was made an example. He had violated the second commandment, not to take the name of the LORD God in vain.